Yar*_*tov 3 python-imaging-library
任何人都可以告诉为什么PIL无法打开此PNG文件?
我得到IOError:无法识别图像文件,通过查看代码,它似乎尝试了PIL.PngImagePlugin.PngImageFile和相应的"accept"函数,并返回False
我使用的是1.1.6版本
我不知道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
| 归档时间: |
|
| 查看次数: |
18744 次 |
| 最近记录: |