conversion of tif image produces readable but garbled PDF. #66

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

By Ken on 2019-12-06T20:28:03.371Z

I am trying to batch convert a set of images. Ultimately I need to append some together but before I get there I noticed some images display incorrectly in Foxit.
In Acrobat pro or acrobat reader when I try to open the PDF it says 'insufficient data for an image.'
File size is similar to other pdfs that look proper and were received from same source.

09n08ea03199401061.tif

09n08ea03.pdf


By josch on 2019-12-06T22:45:00.830Z


I am not surprised. Your TIFF file is a 2-color (so literally only black and white) TIFF encoded in CCITTGroup4. This is really hard to get right, so thank you for the test case!

Could you try converting your TIFF file with the version of img2pdf from git? Because for me that version work.

Thanks!


By josch on 2020-04-05T13:14:51.518Z


I released version 0.3.4 of img2pdf. It works for me with that version. Can you confirm or does your problem persist?


By josch on 2020-08-04T07:05:42.394Z


Since it's working for me, I'm closing this issue. Please re-open in case there is still a problem. Thanks!


By josch on 2020-08-04T07:05:42.633Z


Status changed to closed

*By Ken on 2019-12-06T20:28:03.371Z* I am trying to batch convert a set of images. Ultimately I need to append some together but before I get there I noticed some images display incorrectly in Foxit. In Acrobat pro or acrobat reader when I try to open the PDF it says 'insufficient data for an image.' File size is similar to other pdfs that look proper and were received from same source. [09n08ea03199401061.tif](/uploads/e4c5765b19f39b5438b6e9709f9c2f91/09n08ea03199401061.tif) [09n08ea03.pdf](/uploads/178db85ede93a104e024ecbad3743bab/09n08ea03.pdf) --- *By josch on 2019-12-06T22:45:00.830Z* --- I am not surprised. Your TIFF file is a 2-color (so literally only black and white) TIFF encoded in CCITTGroup4. This is really hard to get right, so thank you for the test case! Could you try converting your TIFF file with the version of img2pdf from git? Because for me that version work. Thanks! --- *By josch on 2020-04-05T13:14:51.518Z* --- I released version 0.3.4 of img2pdf. It works for me with that version. Can you confirm or does your problem persist? --- *By josch on 2020-08-04T07:05:42.394Z* --- Since it's working for me, I'm closing this issue. Please re-open in case there is still a problem. Thanks! --- *By josch on 2020-08-04T07:05:42.633Z* --- 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#66
Loading…
There is no content yet.