PIL and JPEG

Anders M Eriksson anders.eriksson at morateknikutveckling.se
Thu Jul 27 08:36:29 EDT 2000


Hello!

I have a program that uses PIL to create Thumbnails of images. When I
try to do this on a JPEG image I get this error:

Traceback (innermost last):
  File "/home/user10/d9712mor/public_html/cgi-bin/Postcard.py", line
5, in ?
    Montys.PServer.CreatePreview()
  File "/import/user10/d9712mor/python/Montys/PServer.py", line 109,
in CreatePreview
    CreateThumbnail(imagedir,i)
  File "/import/user10/d9712mor/python/Montys/PServer.py", line 33, in
CreateThumbnail
    im.thumbnail((75, 112))
  File "/import/user10/d9712mor/python/PIL/Image.py", line 724, in
thumbnail
    self.load()
  File "/import/user10/d9712mor/python/PIL/ImageFile.py", line 133, in
load
    d = Image._getdecoder(self.mode, d, a, self.decoderconfig)
  File "/import/user10/d9712mor/python/PIL/Image.py", line 229, in
_getdecoder
    raise IOError, "decoder %s not available" % decoder_name
IOError: decoder jpeg not available


I realize that PIL thinks that I haven't linked in the JPEG library,
which I have!! All the compiling and linking is working OK == no
errors.

Python/PIL is only using the _imaging.so and all the python code for
this? I don't need any path to the libjpeg.a do I?


I'm using 
	Python 1.5.1
	PIL 1.0
	Independent JPEG Group's JPEG software version 6b

	Solaris 5.6

If someone has a clue PLEASE help!!

// Anders




More information about the Python-list mailing list