[Tutor] "IOError: decoder jpeg not available"
tsila.hassine at gmail.com
Thu Mar 1 00:35:04 CET 2007
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
>>> 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):
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
% 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:
> 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
> - 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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tutor