IOError:无法识别图像文件

Yar*_*tov 3 python-imaging-library

任何人都可以告诉为什么PIL无法打开此PNG文件?

https://b75094855c6274df1cf8559f089f485661ae1156.googledrive.com/host/0B56ak7W-HmqAX005c3g5eTlBakE/8.png

我得到IOError:无法识别图像文件,通过查看代码,它似乎尝试了PIL.PngImagePlugin.PngImageFile和相应的"accept"函数,并返回False

我使用的是1.1.6版本

Hug*_*ugo 7

我不知道PIL 1.1.6的问题是什么,但我刚用最新的Pillow 2.4.0进行了测试,结果如下:

>>> from PIL import Image
>>> im = Image.open("8.png")
>>> im.show()
Run Code Online (Sandbox Code Playgroud)

PIL在未维护和枕头中是一个积极维护和开发的分支.要使用Pillow,首先卸载PIL,然后安装Pillow.

更多安装说明:http://pillow.readthedocs.org/en/latest/installation.html