473,396 Members | 2,018 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,396 software developers and data experts.

PIL, PNG and MIDP

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

Jul 18 '05 #1
1 2241
"Raaijmakers, Vincent (IndSys, GE Interlogix)" wrote:
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.


Carefully check the MIDP spec and make sure that there aren't other
limitations on its use of PNGs that would result in a problem (which is
just presumably being reported incorrectly by the loader).

Try creating PNGs with the same bit depth and properties with other
software and see if the loader has any trouble opening them.

--
Erik Max Francis && ma*@alcyone.com && http://www.alcyone.com/max/
__ San Jose, CA, USA && 37 20 N 121 53 W && &tSftDotIotE
/ \
\__/ It [freedom] must be demanded by the oppressed.
-- Dr. Martin Luther King, Jr.
Jul 18 '05 #2

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

Similar topics

1
by: Jone Smide | last post by:
Is there a way to calculate a cos and a sin in J2ME MIDP 1.0?
5
by: SpaceCowboy | last post by:
I'm using Sun ONE Studio 4 update 1, Community Edition with Nokia Developer's Suite integration. I'm developing a J2ME project with MIDP. I wanted to use the java.math.floor() function, but...
0
by: Jens Christian Larsen | last post by:
I have downloaded and installed the MIDP and CLDC reference implementations from java.sun.com but I can't seem to get them to work properly on Windows. When I start one of the example MIDlets in...
0
by: Gianluca | last post by:
Hi, I have a Motorola V525 with MIDP 2.0 support. I'm tring to use MIDP 2.0 sockets without success. In the development environment(Sun ONE Studio 5), everything seems to work but when I...
0
by: Bo | last post by:
Hi The rectangles I draw in paint() always hide underneath the "Select one to launch" screen, while the string "Hello World" is drawn over the "to launch" screen. What am I doing wrong? jdk...
0
by: Bo | last post by:
Hi I have an array of int that represents a frame buffer, which I update dynamicly. Each int is 0xAARRGGBB. In standard java I can use imageProducer to create an Image object. In J2ME there...
1
by: Anoniem | last post by:
Hi, I'm trying to start a example which comes with the midp2.0 distribution. My relevant environment variables are set in a batch file like: ...
1
by: james | last post by:
Hi, New to this, so bear with me! I am creating a simple Midp mobile phone app. I am saving a "username" and "password" to rms, this returns two recordID's. When my app runs, it needs to...
1
by: IvanGammelgaard | last post by:
I believe that MIDP 2.0 and CLDC 1.1 is the frameworks/platforms to use when you want to target most mobile phones on the market. If you think otherwise - please give me your thoughts. But what...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.