Bug 119686 - Indexed TIFF import problems at image border
Summary: Indexed TIFF import problems at image border
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Images-TIFF
  Show dependency treegraph
 
Reported: 2018-09-04 08:53 UTC by mahfiaz
Modified: 2019-06-28 19:07 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
0px border.tif Example TIF file, shows bug. (35.30 KB, image/tiff)
2018-09-04 08:54 UTC, mahfiaz
Details
Example document in Draw (16.21 KB, application/vnd.oasis.opendocument.graphics)
2018-09-04 08:56 UTC, mahfiaz
Details
Screenshot of example document (138.52 KB, image/png)
2018-09-04 08:56 UTC, mahfiaz
Details
complex.tif More complex example file. (35.35 KB, image/tiff)
2018-09-04 08:57 UTC, mahfiaz
Details
Screenshot of more complex example. (176.41 KB, image/png)
2018-09-04 08:57 UTC, mahfiaz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mahfiaz 2018-09-04 08:53:44 UTC
Description:
When importing TIFF format image with indexed colors, up to 5 pixels at right edge are dropped and the previous pixel column is repeated instead.

Steps to Reproduce:
1. Download attached image 1px border.tif or complex.tif
2. Drag them to Draw, Writer or Impress.

Actual Results:
Mungled up right side of images. See attached screenshots.

Expected Results:
Pixel perfect image.


Reproducible: Always


User Profile Reset: No



Additional Info:
This bug is pretty old, at least from version 3.5, just got fed up enough today to report it.
Comment 1 mahfiaz 2018-09-04 08:54:38 UTC
Created attachment 144656 [details]
0px border.tif Example TIF file, shows bug.
Comment 2 mahfiaz 2018-09-04 08:56:29 UTC
Created attachment 144657 [details]
Example document in Draw
Comment 3 mahfiaz 2018-09-04 08:56:50 UTC
Created attachment 144658 [details]
Screenshot of example document
Comment 4 mahfiaz 2018-09-04 08:57:28 UTC
Created attachment 144659 [details]
complex.tif More complex example file.
Comment 5 mahfiaz 2018-09-04 08:57:52 UTC
Created attachment 144660 [details]
Screenshot of more complex example.
Comment 6 Buovjaga 2018-09-24 17:50:27 UTC
The artefacts look like bug 56178, do you think it is the same underlying issue?
Comment 7 mahfiaz 2018-09-24 21:12:52 UTC
Thanks for your reply.

I don't think these bugs are much related. That one is about slightly less common compression format in TIFF being incorrectly decompressed (or initially just crashing).
This one is most likely something much simpler, such as simply counting rows and columns incorrectly when decompressing the image.
Comment 8 Buovjaga 2018-09-25 09:38:19 UTC
Ok, I confirmed it in 3.3.0.