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] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
import Image"lena.jpg")
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:"lena.gif") {'version': 'GIF87a', 'background': 0}"lena-test.gif")"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.