PIL jpeg problems

Jonathan Miller notjonathan at yahoo.com
Wed Feb 20 15:12:41 EST 2002


Hello--

I'm having trouble using jpegs with PIL on my ISP's server--FreeBSD
4.1.1-STABLE, Python 2.0 (#4, Nov 22 2000), GCC 2.95.2 19991024 (release), at
pair.com--a good box.

- I've compiled PIL from sources successfully
- No errors in gcc output (-Wall)
- latest version of libjpeg (6b), libz, etc.
- all the tested functions (almost!) work normally within Python

However, jpegs will not decode.

Here's a paste:

>>> import Image
>>> im = Image.open("wee_kirke.jpg")
>>> im.mode
'RGB'
>>> im.size
(400, 300)
>>> im.save("wee_kirke.png")
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/home/peasandc/pil/PIL/Image.py", line 709, in save
    self.load()
  File "/usr/home/peasandc/pil/PIL/ImageFile.py", line 140, in load
    d = Image._getdecoder(self.mode, d, a, self.decoderconfig)
  File "/usr/home/peasandc/pil/PIL/Image.py", line 243, in _getdecoder
    raise IOError, "decoder %s not available" % decoder_name
IOError: decoder jpeg not available
>>>

I've not had trouble with prior compilations here, hence my question.

- Other images cross-save just fine, both paletted and unpaletted.

- All jpegs I've tried (progressive and not, small and large, etc.) have failed
similarly.

Any help would be mightily appreciated.

Thanks,
-Jonathan Miller

__________________________________________________
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com




More information about the Python-list mailing list