PIL, PNG and MIDP

Raaijmakers, Vincent (IndSys, Raaijmakers, Vincent (IndSys,
Wed Nov 19 08:17:03 EST 2003


Does anyone know what could be the problem if PNG generated by PIL don't work for (java) MIDP applications?
All the images can be used by different type of graphical applications. 
The java MIDP application accepts all the PNG examples I can find on my computer, but the png's generated by PIL throws an exception. 

MIDP ImageLoader is complaining right now about an invalid CRC of the PNG?!
Well, the image conversion is very basic, Image.open('foo.jpg').save('foo.png', ''PNG')
Checking the CRC within python, and using a network sniffer shows no problem with any of the CRC's.
Tried to do the conversion on a Linux box (Python2.3) and Windows (Python2.2) using the latest 'greatest' version of PIL.


I'm lost.
Please, if someone has any suggestion.....
Even other libraries suggestions for Python are welcome, I just thought that PIL was the THE image library for Python.


Vincent





More information about the Python-list mailing list