-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError when trying to save a pyramidal TIFF as JPEG in Pillow 5.0.0 #3053
Comments
Hello @alexwlchan thank you for having create a new thread I will close the loris-imageserver/loris#415 For answering your last question. this is a link real to one of my TIFF file http://176.31.193.99/loris/image.tif/info.json Unfortunately, originals tiled TIFF files are under licence, if need to get one of them, send me a private email on [email protected]. Then, I will be able to send you an example. Thank a lot again! |
Testing, the breaking change is #2899. The compression mode used in the image here is 'jpeg', which was deliberately removed in that PR, due to 'colorspace issues' - #2899 (comment) |
I believe #3227 should fix reading tiled jpeg-compressed tiffs. |
Testing, I find that #3227 does indeed resolve this. |
This was originally discovered in loris-imageserver/loris#415.
What did you do?
Create a tiled pyramidal TIFF from a JPEG with the following ImageMagick command:
Open the file in Pillow and save it as a JPEG:
What did you expect to happen?
A new JPEG would be created from the pyramidal TIFF, which resembled the original JPEG.
What actually happened?
In Pillow 4.3.0, the conversion succeeds.
In Pillow 5.0.0, I get a TypeError with the following traceback:
What versions of Pillow and Python are you using?
In both cases, I’m using Python 3 on macOS in a fresh virtualenv:
With Pillow 5.0.0:
And with Pillow 4.3.0:
I’ve attached a ZIP file to this issue which contains:
pillow_example.zip
The text was updated successfully, but these errors were encountered: