Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcnemesis/c5e1568e5ed2530d6813 to your computer and use it in GitHub Desktop.
Save mcnemesis/c5e1568e5ed2530d6813 to your computer and use it in GitHub Desktop.
Highlighting some nasty bug in Python Imaging, common to Debian currently
>>> 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