473,386 Members | 1,801 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Solaris PIL JPEG Problems

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
0 1306

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Andres Rosado-Sepulveda | last post by:
Hello, I'm having trouble compiling PHP 4.3.4 on Solaris 8. This is the error message it is showing: -- start -- Undefined first referenced symbol ...
0
by: Phil | last post by:
I realize this is the php group, but I have a question that recurses back to my php install. My objective is a pure 64 bit shared object installation of php 5.0 on UltraSparc Solaris 9 compiled...
2
by: Skip Montanaro | last post by:
I'm trying to build the released version of Python 2.3 on Solaris 8 for the first time. It has problems when building _ssl.so. The command generated is gcc -shared...
0
by: Holger Joukl | last post by:
Hi there, I have severe problems running python 1.5.2 (yes I know, but this is a productive environment; cannot switch to py 2.3.3 until later this year...) on several multi-processor sun...
3
by: Steve Holden | last post by:
If nobody has a quick answer I'll go to the PIL list, but I'm having problems with PIL JPEG support on Windows, and figured someone on c.l.py might have solved this problem. I built the Cygwin...
4
by: Vasanth | last post by:
Hi: I am using Sun JdbcOdbcDriver to access MS-Access from Java client on Windows platform. We are in the process of migrating from Win to Solaris and AIX platform. MS-Access will continue to...
0
by: Kirt Loki Dankmyer | last post by:
So, I download the latest "stable" tar for perl (5.8.7) and try to compile it on the Solaris 8 (SPARC) box that I administrate. I try all sorts of different switches, but I can't get it to compile....
0
by: Gellert, Andre | last post by:
Hello, yesterday I ran into problems installing my first PostgreSQL on Solaris. My main problems consisted on missing packages, because the test system I had to use was a very small installation....
0
by: markvr | last post by:
Not sure if this is the best place to ask this, if not please can someone point in the right direction. I am trying to compile PHP 5.2 on a Solaris 9 system. I need Oracle DB support so can't...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.