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 2.7.2.2] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
import Image
a=Image.open("lena.jpg")
a.size (128, 128) a.info {'jfif_version': (1, 1), 'jfif': 257, 'jfif_unit': 0, 'jfif_density': (1, 1)} a.save("lena-test.jpg", "JPEG") Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/opt/lib/python2.2/site-packages/PIL/Image.py", line 1125, in save
self.load()
File "/opt/lib/python2.2/site-packages/PIL/ImageFile.py", 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:
a=Image.open("lena.gif")
a.info {'version': 'GIF87a', 'background': 0} a.save("lena-test.gif")
a.save("lena-test.png", "PNG")
Thanks !
Please respond here instead of via email.