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
"cannot identify image file" in 3.0.0 on a TIFF file that worked with 2.9.0 #1466
Comments
Well, It's the Tiff IFD change. Looks like in the reorg of the format specifications, this one got dropped:
|
The tiff spec defines For the old code, the sample format was set by
Which I think simply means that The current code just uses the --edit-- |
Try this branch: https://github.com/wiredfool/Pillow/tree/sampleformat Is the copyleft.tiff diestibutable under an MIT like license as a test image? (I'm somewhat worried about the war that that question could ignite...) |
@wiredfool Works great! My example above works now. The image uploaded successfully and it fixed our tests in flask-admin too: https://i.imgur.com/l1naZYv.png Thank you so much for your hard work on Pillow. |
Cool, glad it worked. |
Flatten sampleformat to initial value, fixes #1466
I am wondering whether and when Pillow 3.0.0 is going to have this issue fixed? Since the same issue happened to me when using pip install git+https://github.com/wiredfool/Pillow |
The fix is included in the latest release of Pillow, 3.1.0. At the moment, there are no planned subsequent releases of Pillow 3.0. |
To test, first download the files in this folder: https://github.com/flask-admin/flask-admin/tree/master/flask_admin/tests/data
Then run this code in the same folder as those files:
It will open all 5 files in 2.9.0, but in 3.0.0 it will fail on the TIFF file. It's failing on OS X Yosemite and Ubuntu 12.04 LTS Server Edition 64 bit with both Python 2 and 3.
The error I'm getting is:
IOError: cannot identify image file <open file 'copyleft.tiff', mode 'rb' at 0x10a15f8a0>
The text was updated successfully, but these errors were encountered: