Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Red and blue components swapped in png images [workaround]



Hello,

After installing 10.4.1, I ran some of my Java applications (with Java 1.4.2) and got very strange graphical results. Some images appear with red and blue component swapped, some display just fine. This problem has already been reported (*) but it seems that no workaround was proposed.

After some checks on these images (**), I discovered that PNG with alpha channel are correctly rendered whereas PNG without alpha channel are rendered with red and blue swapped.
Then addition of an alpha channel to files lacking one fixed the problem in all my applications.


Addition of such an alpha channel is simple to do in GIMP using the menu
"Layer>Transparency>Add alpha channel ...".


This workaround appears to work on 10.4.1 with Java 1.4.2 on my computer. Could anyone validate or invalidate it on other OS/Java version ?


Cordially,

Xavier Clerc

(*) messages related to this problem :
http://lists.apple.com/archives/java-dev/2005/May/msg00251.html
http://lists.apple.com/archives/java-dev/2005/May/msg00255.html
http://lists.apple.com/archives/java-dev/2005/May/msg00256.html
http://lists.apple.com/archives/java-dev/2005/May/msg00252.html
http://lists.apple.com/archives/java-dev/2005/May/msg00461.html
http://lists.apple.com/archives/java-dev/2005/May/msg00464.html

(**) all the images I use are using RGB encoding (neither palette nor grayscale)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden


This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.