Closed dwvisser closed 6 months ago
Would you be able to upload the TIFF image itself? It's possible you're using an older version of GraphicsMagick, and removing as much ambiguity as possible in bug reports is helpful.
Would you be able to upload the TIFF image itself? It's possible you're using an older version of GraphicsMagick, and removing as much ambiguity as possible in bug reports is helpful.
Sure! Here it is (zipped because GitHub blocks TIFF files): temp_tiff.zip
Ok, I've created #7996. With it,
from PIL import Image
image = Image.open("temp_tiff.tif")
image.save("out.png")
gives
Thanks! I'll try the patch myself tomorrow. 😁
What did you do?
I take a PNG file of rotated text, used for testing OCR, and convert it to 8-bit grayscale TIFF using the GraphicsMagick command-line utility. Then I try to load the resulting image into Pillow.
What did you expect to happen?
Successful load.
What actually happened?
Unrecognized file format exception.
What are your OS, Python and Pillow versions?
First,
Here is the input PNG file:
Try to load with Pillow
Resulting error: