You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Philip Arad <ph...@hotmail.com> on 2002/01/28 15:05:34 UTC

Gamma correction in IE5.5

Gamma correction with IE5.5

Batik is using a Gamma correction of 2.2.
When I render an image to PNG with this correction, I receive
the right color (if you open the image with Photoshop, for
example), but when displaying the image in IE5.5, the image
has darker colors. After a while, I understood that IE5.5
is using another Gamma correction. After some experiments I found out
that it is approximately : 1.942F.

I couldnt found a way to set the gamma when I made a new
PNGTranscoder, so I had to replace it manualy in the program.
Only in this way I could make the right correction:

// We are using sRGB (gamma 2.2).
//params.setSRGBIntent(PNGEncodeParam.INTENT_PERCEPTUAL);
params.setGamma(1.0F/1.942F);
(This a part of PNGTranscoder.java)

Any suggestions?

Philip

_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Re: Gamma correction in IE5.5

Posted by Thierry Kormann <tk...@ilog.fr>.
On Monday 28 January 2002 15:05, Philip Arad wrote:
> Gamma correction with IE5.5
>
> Batik is using a Gamma correction of 2.2.
> When I render an image to PNG with this correction, I receive
> the right color (if you open the image with Photoshop, for
> example), but when displaying the image in IE5.5, the image
> has darker colors. After a while, I understood that IE5.5
> is using another Gamma correction. After some experiments I found out
> that it is approximately : 1.942F.
>
> I couldnt found a way to set the gamma when I made a new
> PNGTranscoder, so I had to replace it manualy in the program.
> Only in this way I could make the right correction:
>
> // We are using sRGB (gamma 2.2).
> //params.setSRGBIntent(PNGEncodeParam.INTENT_PERCEPTUAL);
> params.setGamma(1.0F/1.942F);
> (This a part of PNGTranscoder.java)
>
> Any suggestions?

Please, add a bug report to batik using bugzilla.

I will add ASAP a new TranscodinHint to the PNGTranscoder that will let you 
specify the gamma correction.


Thierry.


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org