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('fo o.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 1 2261
"Raaijmaker s, 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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jone Smide |
last post by:
Is there a way to calculate a cos and a sin in J2ME MIDP 1.0?
|
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 whenver I tried to
import the java.math package, the compiler told me it couldn't be found. I
was finally able to import java.lang.math, but this has a bare minimum
mathematic functions. I'm still a newb, so can someone help me with this?
...
|
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 the MIDP dir from the command
line, it starts up and displays a list of midlets. However, when I select
one of the midlets I get the error:
C:\j2me\j2me_midp-2.0\example>midp -descriptor games.jad
Unable to create MIDlet...
|
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 download the midlet in the telephone and I launch it,
it blocks when it tries to open the socket:
SocketConnection sc =
(SocketConnection)Connector.open("socket://xxx.xxx.xxx.xxx:xx");
|
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 1.4, midp 2.0
public class myCanvas extends Canvas{
| |
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 is only createImage( Byte, int,int,int) in the Images
class. From reading past posts it seems the Byte array must adhere to
some PNG format (which I have no idea). In other words, I can't use a
Byte array equivalent of my int array.
|
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:
PATH=%PATH%;\j2sdk1.4.2_10\bin;c:\j2me\midp2.0fcs\bin;j2me\j2me_cldc\bin
set CLASSPATH=c:\j2me\midp2.0fcs\classes;.
set MIDP_HOME=c:\j2me\midp2.0fcs
When I go to the C:\j2me\midp2.0fcs\example directory and give the following
|
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 check whether a username and password were
saved, so I want to read the records... but how do I know the recordID?
|
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 tools do I need to download to start developing?
Emulator?
libraries to support the developement?
In short terms - how do I best get started?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| | |