简体   繁体   English

没有PIL的python2.7 win64中如何使用jpeg?

[英]how work with jpeg in python2.7 win64 without PIL?

I cant run jpeg support in PIL and think about another modules for python... 我无法在PIL中运行jpeg支持,并考虑使用其他python模块...

i have: Win7 x64 + Python 2.7 x64 and PIL says: 我有: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

is there an alternative PIL in python? python中有替代的PIL吗? I whant read pixel data from jpeg. 我想从jpeg中读取像素数据。 Nothing else... But all what i find is PIL and imageMagic. 没什么...但是我发现的只是PIL和imageMagic。 First not worked. 首先没有用。 Second - its not python module and need install to system some programs... 其次-它不是python模块,需要安装系统一些程序...

is there something simple for read pixel data from jpeg without compilation, installing visual studio and other programs? 有没有什么简单的方法可以从jpeg中读取像素数据,而无需进行编译,安装Visual Studio和其他程序?

Try the pillow fork of PIL. 尝试PIL的枕头叉。

You'll find binary installers on PyPi, so you don't need to compile anything yourself. 您会在PyPi上找到二进制安装程序,因此您不需要自己编译任何东西。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM