Solaris PIL JPEG Problems

BRAINIAC brainiac at
Thu Feb 5 08:44:18 CET 2004

I am trying to process JPEG images using PIL 1.1.4 with Python 2.2.3.
GIF and PNG are working fine. I am using jpeg-6b and all my other
software using libjpeg work fine.  I am thinking you need much more
info to help me, but let me start with this:

Python 2.2.3 (#2, Feb  3 2004, 03:09:11)
[GCC] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> import Image
>>> a.size
(128, 128)
{'jfif_version': (1, 1), 'jfif': 257, 'jfif_unit': 0, 'jfif_density': (1, 1)}
>>>"lena-test.jpg", "JPEG")
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/opt/lib/python2.2/site-packages/PIL/", line 1125, in save
  File "/opt/lib/python2.2/site-packages/PIL/", line 192, in load
    raise IOError(error + " when reading image file")
IOError: decoding error when reading image file

Here is output from another session in which GIF and PNG work fine:

{'version': 'GIF87a', 'background': 0}
>>>"lena-test.png", "PNG")

Thanks !

Please respond here instead of via email.

More information about the Python-list mailing list