[Image-SIG] PIL problem
Romain Slootmaekers
romain@zzict.com
Fri, 14 Sep 2001 13:16:35 +0200 (CEST)
Yo,
I installed PIL with Python2.1 and also installed the ijg library,
but with a simple test program i get 'IOError: decoder jpeg not available'
appearantly loading a jpeg works, but resizing doesn't ....
can Anybody help me with that ? the program as well as the traceback are
below
(please respond to me directly as I'm not subscribed to the mailing list)
TIA, Sloot
------------------- program ----------------------
#
import Image
im=Image.open('/home/romain/Appropriately-Left-Handed-2.jpg')
print im.format,im.mode,im.size
out=im.resize((128,128))
out.save("test.jpg")
------------------ traceback -----------------
Traceback (most recent call last):
File "test.py", line 4, in ?
out=im.resize((128,128))
File "/home/zope/Python2.1/lib/python2.1/site-packages/PIL/Image.py",
line 661, in resize
self.load()
File
"/home/zope/Python2.1/lib/python2.1/site-packages/PIL/ImageFile.py", line
140, in load
d = Image._getdecoder(self.mode, d, a, self.decoderconfig)
File "/home/zope/Python2.1/lib/python2.1/site-packages/PIL/Image.py",
line 243, in _getdecoder
raise IOError, "decoder %s not available" % decoder_name
IOError: decoder jpeg not available