Color is not correct for multipage RGB compressed Type 7 tiff #29

Closed
opened 3 years ago by josch · 0 comments
josch commented 3 years ago
Owner

By Joseph Biggert on 2016-05-23T22:08:38.269Z

When this file, test-multi-rgb-compression-type-7, is converted to pdf, the color is not correct.


By josch on 2016-05-25T19:01:02.531Z


Could you provide an example file?


By Joseph Biggert on 2016-06-09T16:20:58.782Z


The link to the image is in the description although it shows up in Chrome as a broken image.

Here it is in plain text: http://gitlab.mister-muffin.de/josch/img2pdf/uploads/36b22e1ba01fcf15fe74d441dd6297c0/test-multi-rgb-compression-type-7.tiff


By josch on 2017-01-21T08:01:33.143Z


I fear there is nothing much we can do about this in img2pdf because this seems to be a problem with PIL support of this image type. Try this:

python3 -c 'from PIL import Image; Image.open("test-multi-rgb-compression-type-7.tiff").save("out.png")'

Then out.png will show up in wrong colors.


By josch on 2020-08-04T07:11:53.695Z


Today, four years later, it seems PIL is now able to process that kind of TIFF file just fine! So this works for me now. @biggert can you confirm?


By Joseph Biggert on 2020-09-01T20:17:47.989Z


I would agree - this appears to work now. Thanks!


By Joseph Biggert on 2020-09-01T20:17:48.560Z


Status changed to closed

*By Joseph Biggert on 2016-05-23T22:08:38.269Z* When this file, ![test-multi-rgb-compression-type-7](/uploads/36b22e1ba01fcf15fe74d441dd6297c0/test-multi-rgb-compression-type-7.tiff), is converted to pdf, the color is not correct. --- *By josch on 2016-05-25T19:01:02.531Z* --- Could you provide an example file? --- *By Joseph Biggert on 2016-06-09T16:20:58.782Z* --- The link to the image is in the description although it shows up in Chrome as a broken image. Here it is in plain text: http://gitlab.mister-muffin.de/josch/img2pdf/uploads/36b22e1ba01fcf15fe74d441dd6297c0/test-multi-rgb-compression-type-7.tiff --- *By josch on 2017-01-21T08:01:33.143Z* --- I fear there is nothing much we can do about this in img2pdf because this seems to be a problem with PIL support of this image type. Try this: python3 -c 'from PIL import Image; Image.open("test-multi-rgb-compression-type-7.tiff").save("out.png")' Then `out.png` will show up in wrong colors. --- *By josch on 2020-08-04T07:11:53.695Z* --- Today, four years later, it seems PIL is now able to process that kind of TIFF file just fine! So this works for me now. @biggert can you confirm? --- *By Joseph Biggert on 2020-09-01T20:17:47.989Z* --- I would agree - this appears to work now. Thanks! --- *By Joseph Biggert on 2020-09-01T20:17:48.560Z* --- Status changed to closed
josch closed this issue 3 years ago
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: josch/img2pdf#29
Loading…
There is no content yet.