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!
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…
I just tried it and it works beautifully. Thank you!
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…
This is probably a stupid question, but why doesn't '-C 1' sidestep the problem?
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…
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?
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?
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…
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…