By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,345 Members | 1,790 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,345 IT Pros & Developers. It's quick & easy.

Solaris PIL JPEG Problems

P: n/a
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 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.
Jul 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.