• Joined on
Loading Heatmap…

smw closed issue josch/img2pdf#164

new(?) issue with converting 2-color TIFF images to PDF.

11 months ago

smw commented on issue josch/img2pdf#164

new(?) issue with converting 2-color TIFF images to PDF.

I'm not sure exactly what happened, but I have the latest commit now, and this one really does work perfectly. My apology for the inconvenience, and thank you again for doing this!

11 months ago

smw reopened issue josch/img2pdf#164

new(?) issue with converting 2-color TIFF images to PDF.

11 months ago

smw commented on issue josch/img2pdf#164

new(?) issue with converting 2-color TIFF images to PDF.

Sadly, I spoke too soon. The new update absolutely does correctly handle the case where the image has the incorrect color profile, but for images which don't have that (such as the original…

11 months ago

smw commented on issue josch/img2pdf#164

new(?) issue with converting 2-color TIFF images to PDF.

I just tried it and it works beautifully. Thank you!

11 months ago

smw commented on issue josch/img2pdf#164

new(?) issue with converting 2-color TIFF images to PDF.

I didn't know that about the format produced by gimp, so thank you for clarifying that. Also, I understand why you need to be careful about losing information, but that's where the -C option…

11 months ago

smw commented on issue josch/img2pdf#164

new(?) issue with converting 2-color TIFF images to PDF.

This is probably a stupid question, but why doesn't '-C 1' sidestep the problem?

11 months ago

smw commented on issue josch/img2pdf#164

new(?) issue with converting 2-color TIFF images to PDF.

Just for fun, I added a print statement to the version 0.4.4 source code as follows: ``` *** img2pdf.py.original 2023-05-29 18:43:46.651841267 -0400 --- img2pdf.py 2023-05-29 18:39:15.5682220…

11 months ago

smw commented on issue josch/img2pdf#164

new(?) issue with converting 2-color TIFF images to PDF.

Do you really need to parse the color profile? You already know that the image is a bilevel TIFF with CCITT Group 4 encoding; isn't it safe to forcibly set iccp to None and proceed on that basis?

11 months ago

smw commented on issue josch/img2pdf#164

new(?) issue with converting 2-color TIFF images to PDF.

I think you're right. Is there any chance you'd be willing to modify img2pdf to detect that condition and ignore the false color profile?

11 months ago

smw commented on issue josch/img2pdf#164

new(?) issue with converting 2-color TIFF images to PDF.

I already replied to this by email, but I'll copy that reply here for the record. I don't know how to create bilevel TIFF images in gimp either. The images I'm working with were created by…

11 months ago

smw commented on issue josch/img2pdf#164

new(?) issue with converting 2-color TIFF images to PDF.

After some experimenting, it seems that the problem occurs only for images that were edited using gimp version version 2.10.34, and exported from gimp using its default export options. I can't…

12 months ago

smw opened issue josch/img2pdf#164

new(?) issue with converting 2-color TIFF images to PDF.

1 year ago