Oct 6, 2009 at 7:28 AM
Edited Oct 6, 2009 at 7:51 AM
I dont understand what you want to say: Do you recommend just to ignore the gamme chunk?
But nevertheless I do not understand why this line of code makes some problems. When I look at wikipedia I see the following formula:
And the png specification says:
The gAMA chunk contains:
The value is encoded as a four-byte PNG unsigned integer, representing gamma times 100000.
EXAMPLE A gamma of 1/2.2 would be stored as the integer 45455.
I just write the gamma value 100.000 ( = 1 ) to the gamme stream. It shouldnt change anything.
EDIT: I think I understand the problem: I gamma value of 1 just means that its output is linearly proportional to its input. But perhaps they add an offset which makes the image looks wahsed-out and pale. So the Idea is to make two property to the encoder,
where you can specify, if gamma value should be stored or not and where you specify the gamma value if you need one. What do you say?