[Tutor] "IOError: decoder jpeg not available"

Tsila Hassine tsila.hassine at gmail.com
Thu Mar 1 00:35:04 CET 2007

Hello all!

sorry - pretty much of a novice....
here's a snippet I am running from the Python interactive interface  - and
the error I am getting:

>>> import Image, imghdr
>>> im=Image.open('test406.jpg')
>>> new_image=im.resize((100.0,100.0), Image.ANTIALIAS)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
line 1188, in resize
line 180, in load
    d = Image._getdecoder(self.mode, d, a, self.decoderconfig)
line 328, in _getdecoder
    raise IOError("decoder %s not available" % decoder_name)
IOError: decoder jpeg not available

I seem to have PIL in stalled in 2 different locations (don't know if that
may cause the problem):
1: ./Library/Python/2.3/PIL

2: ./Library/Python/2.3/site-packages/PIL

when I tried to reinstall imaging1.1.5 I got the following :

--- TKINTER support ok
*** JPEG support not available
--- ZLIB (PNG/ZIP) support ok
*** FREETYPE2 support not available

although I have jpeg-6b in ./jpeg6-and I also re installed adn got the
following :
% make -n install
/usr/bin/install -c cjpeg /usr/local/bin/cjpeg
/usr/bin/install -c djpeg /usr/local/bin/djpeg
/usr/bin/install -c jpegtran /usr/local/bin/jpegtran
/usr/bin/install -c rdjpgcom /usr/local/bin/rdjpgcom
/usr/bin/install -c wrjpgcom /usr/local/bin/wrjpgcom
/usr/bin/install -c -m 644 ./cjpeg.1 /usr/local/man/man1/cjpeg.1
/usr/bin/install -c -m 644 ./djpeg.1 /usr/local/man/man1/djpeg.1
/usr/bin/install -c -m 644 ./jpegtran.1 /usr/local/man/man1/jpegtran.1
/usr/bin/install -c -m 644 ./rdjpgcom.1 /usr/local/man/man1/rdjpgcom.1
/usr/bin/install -c -m 644 ./wrjpgcom.1 /usr/local/man/man1/wrjpgcom.1

I hope this provides some further insite....


On 2/28/07, Hugo González Monteverde <hugonz-lists at h-lab.net> wrote:
> Hi,
> It looks like there is a capability you don't have installed in your
> image processing lib. but you really give us nothing. Please tell us:
>   - Was this working before in any other operating system or python
> version?
>   - What module are you using for working with jpeg?
>   - Show us the code that throws this exception, or how you use it..
> And maybe we'll have some info to help you out.
> Tsila Hassine wrote:
> > Dear fellow Pythoneers,
> >
> > I have recently upgraded to Mac 10.4, and since then this error appears
> > when trying to manipulate an image (resize it actually),
> > can anyone help me out ?
> >
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20070301/752d38c6/attachment.html 

More information about the Tutor mailing list