[Image-SIG] PIL

Tom Cameron tom@mooball.com
Mon, 23 Jul 2001 08:36:21 +1000

I have just installed PIL on my machine - FreeBSD4.0 Python1.5.2

It all seemed to go well and I can use the library, but I cant create JPEG
files. Each time I try I get the following error.

>>> image.save("newimage","JPEG")
Traceback (innermost last):
  File "<stdin>", line 1, in ?
  File "PIL/Image.py", line 720, in save
    SAVE[string.upper(format)](self, fp, filename)
  File "PIL/JpegImagePlugin.py", line 306, in _save
    ImageFile._save(im, fp, [("jpeg", (0,0)+im.size, 0, rawmode)])
  File "PIL/ImageFile.py", line 369, in _save
    e = Image._getencoder(im.mode, e, a, im.encoderconfig)
  File "PIL/Image.py", line 259, in _getencoder
    raise IOError, "encoder %s not available" % encoder_name
IOError: encoder jpeg not available

I have jpeg-6b installed in the usual spot and the compile went fine with no

Can you suggest why it cant handle jpegs?


Tom Cameron                                    CELL: +61 (4) 1455-3212
Mooball.com Pty Ltd                      VOICE MAIL: +61 (7) 3319-6074
PO Box 1158                                  FAX-AU: +61 (7) 3319-6074
Fortitude Valley, Brisbane, QLD              FAX-US: +1 (801) 516-8937
Australia                                              tom@mooball.com
Time Zone GMT+10                               http://corp.mooball.com