Mailing Lists: Apple Mailing Lists

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

RE: Red and blue components swapped in png images [workaround]



Hi, 

I have seeen similar behaviour in our web-app on tiger, using Safari. 
When I used the Internet Explorer the colors of displayed images were fine. 
All images on the site are jpg's. Icons and logos are gif, and they show no
flaws (color swapping). 
We generate the jpg's on the fly (cached) so we could easily add parameters.

But, since it works in Internet Explorer on Mac it seems strange that we
should change something in the jpg file. 
Unless Internet Explorer, again, has undocumented errors on the Mac. :-)

I hope someone else can validate your workaround. 


Regards
  Thor


> -----Original Message-----
> From: java-dev-bounces+tk=email@hidden 
> [mailto:java-dev-bounces+tk=email@hidden] On 
> Behalf Of Xavier Clerc
> Sent: Friday, May 27, 2005 10:28 AM
> To: 
> Subject: 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
> 

 _______________________________________________
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

References: 
 >Red and blue components swapped in png images [workaround] (From: Xavier Clerc <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.