You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Load up the TIFF file as an Image object I could operate on
What actually happened?
Throws an exception
What versions of Pillow and Python are you using?
Pillow-3.1.0.dist-info
Python 3.4.3 (default, Jul 13 2015, 12:18:23)
[GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)] on darwin
Please include code that reproduces the issue and whenever possible, an image that demonstrates the issue. The best reproductions are self-contained scripts with minimal dependencies.
and that's happening in ImageFile.py:97: self._open():
try:
self._open()
except (IndexError, # end of dataTypeError, # end of data (ord)KeyError, # unsupported modeEOFError, # got header but not the first framestruct.error) asv:
raiseSyntaxError(v)
And this invokes the TiffImagePlugin.py where it fails at 899: self._seek(0). If I set DEBUG=True and PDB through it, we get some useful hints -- an "unsupported format".
What did you do?
Tried to load an Image from a TIFF file on disk; code below.
I just tried to attach the file to this ticket, but GH won't let me as the file is 172MB and the limit is 10MB, so I've put it up in dropbox:
https://dl.dropboxusercontent.com/u/13625221/ARC-1980-AC80-0453.tif
What did you expect to happen?
Load up the TIFF file as an Image object I could operate on
What actually happened?
Throws an exception
What versions of Pillow and Python are you using?
Pillow-3.1.0.dist-info
Python 3.4.3 (default, Jul 13 2015, 12:18:23)
[GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)] on darwin
Please include code that reproduces the issue and whenever possible, an image that demonstrates the issue. The best reproductions are self-contained scripts with minimal dependencies.
This is reported by Image.py:2294, and is caused by line 2275, the factory() call:
Debugging shows it throws:
SyntaxError: unknown pixel mode
and that's happening in ImageFile.py:97: self._open():
And this invokes the TiffImagePlugin.py where it fails at 899: self._seek(0). If I set DEBUG=True and PDB through it, we get some useful hints -- an "unsupported format".
This format key is not in the OPEN_INFO dict, and I'm not seeing any others with BitsPerSample=(16, 16, 16).
And now I'm totally out of my league. :-(
The only other hit on the original error message I've seen is this thread from 2012:
http://www.aps.anl.gov/epics/tech-talk/2012/msg00622.php
where they discuss 32-bit TIFFs.
FWIW, OSX "Preview" app can open it, display, and convert to JPEG, so it seems this TIFF variant is something PIL needs to know about.
Thanks for any help you can provide!
The text was updated successfully, but these errors were encountered: