簡體   English   中英

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

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM