PIL - cannot get jpeg decoder to work

Nelson Rush palisade at users.sourceforge.net
Fri Oct 26 11:25:04 CEST 2001

I've tried everything I can think of to get the Jpeg decoder to function
under PIL, but I've yet to get it working. Can anyone tell me what I'm doing
wrong? Thanks.

Python 2.0 (#1, Oct 18 2000, 13:16:26)
[GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2
Type "copyright", "credits" or "license" for more information.
>>> import os,sys
>>> import _imaging
>>> import Image
>>> import JpegImagePlugin
>>> Image._initialized=1
>>> Image.init()
>>> im = Image.open("face.jpg").save("testing.jpg")
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/home2/palisade/PIL/PIL/Image.py", line 709, in save
  File "/usr/home2/palisade/PIL/PIL/ImageFile.py", line 140, in load
    d = Image._getdecoder(self.mode, d, a, self.decoderconfig)
  File "/usr/home2/palisade/PIL/PIL/Image.py", line 243, in _getdecoder
    raise IOError, "decoder %s not available" % decoder_name
IOError: decoder jpeg not available

Nelson Rush

"To make available for life every place where life is possible. To make
inhabitable all worlds as yet uninhabitable, and all life purposeful."
-- Hermann Oberth

More information about the Python-list mailing list