[英]how work with jpeg in python2.7 win64 without PIL?
我无法在PIL中运行jpeg支持,并考虑使用其他python模块...
我有:Win7 x64 + Python 2.7 x64和PIL说:
Traceback (most recent call last):
File "D:\arduino\pde\freezelight_printer\freezelight_printer_computer.py", line 43, in <module>
print im.getpixel((x,y))
File "C:\Python27\lib\site-packages\PIL\Image.py", line 949, in getpixel
self.load()
File "C:\Python27\lib\site-packages\PIL\ImageFile.py", line 189, in load
d = Image._getdecoder(self.mode, d, a, self.decoderconfig)
File "C:\Python27\lib\site-packages\PIL\Image.py", line 385, in _getdecoder
raise IOError("decoder %s not available" % decoder_name)
IOError: decoder jpeg not available
python中有替代的PIL吗? 我想从jpeg中读取像素数据。 没什么...但是我发现的只是PIL和imageMagic。 首先没有用。 其次-它不是python模块,需要安装系统一些程序...
有没有什么简单的方法可以从jpeg中读取像素数据,而无需进行编译,安装Visual Studio和其他程序?
尝试PIL的枕头叉。
您会在PyPi上找到二进制安装程序,因此您不需要自己编译任何东西。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.