Created
June 2, 2014 13:57
-
-
Save mcnemesis/c5e1568e5ed2530d6813 to your computer and use it in GitHub Desktop.
Highlighting some nasty bug in Python Imaging, common to Debian currently
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> import Image | |
>>> Image.open("file.png") | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 2020, in open | |
raise IOError("cannot identify image file") | |
IOError: cannot identify image file | |
>>> from PIL import Image | |
>>> Image.open("file.png") | |
<PngImagePlugin.PngImageFile image mode=RGB size=40x40 at 0x25690E0> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment