python imaging library - IOError: cannot identify image file -
can tell why pil can't open png file?
i ioerror: cannot identify image file, , looking @ code, seems tries pil.pngimageplugin.pngimagefile , corresponding "accept" function, , returns false
i'm using version 1.1.6
i don't know problem pil 1.1.6 tested latest pillow 2.4.0 , worked:
>>> pil import image >>> im = image.open("8.png") >>> im.show()
pil in unmaintained , pillow actively maintained , developed fork. use pillow, first uninstall pil, install pillow.
further installation instructions here: http://pillow.readthedocs.org/en/latest/installation.html
Comments
Post a Comment