POV-Ray : Newsgroups : povray.binaries.images : Linux gamma driving me nuts Server Time
15 Nov 2024 16:15:32 EST (-0500)
  Linux gamma driving me nuts (Message 1 to 5 of 5)  
From: Ard
Subject: Linux gamma driving me nuts
Date: 10 Nov 2005 21:00:01
Message: <web.4373fa0e5849a475ed802ab30@news.povray.org>
Here is an image in support of
http://news.povray.org/povray.newusers/thread/%3Cweb.4373f7155849a475ed802ab30%40news.povray.org%3

Briefly put, Mozilla and Firefox on a Linux box, and IE via an rdesktop
session, display my POV-generated PNGs much more brightly than image
viewers and POV's own image previewer display them.

The full rant is available in p.newusers.  I sure would appreciate your
advice on this one folks.


Post a reply to this message


Attachments:
Download 'gammadness.jpg' (37 KB)

Preview of image 'gammadness.jpg'
gammadness.jpg


 

From: povray
Subject: Re: Linux gamma driving me nuts
Date: 11 Nov 2005 21:38:45
Message: <2b9c.437554e0.1abcd@localhost>
Ard wrote:
> Here is an image in support of
>
http://news.povray.org/povray.newusers/thread/%3Cweb.4373f7155849a475ed802ab30%40news.povray.org%3
> 
> Briefly put, Mozilla and Firefox on a Linux box, and IE via an rdesktop
> session, display my POV-generated PNGs much more brightly than image
> viewers and POV's own image previewer display them.
> 
> The full rant is available in p.newusers.  I sure would appreciate your
> advice on this one folks.
> 
> 
> 
> ------------------------------------------------------------------------
> 

	The gamma chunk in PNG images has given me nothing but trouble.
Every browser, every program, seems to (over)compensate for gamma 
in a different way.  The answer is to make sure the png file has
no gamma chunk in it.
	Here is what I do ..
	Render/create image to Targa (tga) file.  Open said Targa
file in gimp.  Save as a PNG from gimp.  In the file save dialog, 
make sure that the "save gamma" box is NOT checked.  Save.  You
have just written a png that contains no gamma.  End of problem.


-- 
to all the companies who wait until a large user base becomes
dependant on their freeware, then shafting said happy campers with
mandatory payment for continued usage. I spit on your grave.


Post a reply to this message

From: Alain
Subject: Re: Linux gamma driving me nuts
Date: 12 Nov 2005 14:34:25
Message: <437643c1$1@news.povray.org>
povray nous apporta ses lumieres en ce 2005-11-11 21:35:
> Ard wrote:
> 
>> Here is an image in support of
>>
http://news.povray.org/povray.newusers/thread/%3Cweb.4373f7155849a475ed802ab30%40news.povray.org%3

>>
>>
>> Briefly put, Mozilla and Firefox on a Linux box, and IE via an rdesktop
>> session, display my POV-generated PNGs much more brightly than image
>> viewers and POV's own image previewer display them.
>>
>> The full rant is available in p.newusers.  I sure would appreciate your
>> advice on this one folks.
>>
>>
>>
>> ------------------------------------------------------------------------
>>
> 
>     The gamma chunk in PNG images has given me nothing but trouble.
> Every browser, every program, seems to (over)compensate for gamma in a 
> different way.  The answer is to make sure the png file has
> no gamma chunk in it.
>     Here is what I do ..
>     Render/create image to Targa (tga) file.  Open said Targa
> file in gimp.  Save as a PNG from gimp.  In the file save dialog, make 
> sure that the "save gamma" box is NOT checked.  Save.  You
> have just written a png that contains no gamma.  End of problem.
> 
> 
If I remember corectly, if you DON'T include "assumed_gamma" then your PNG don't
include gamma 
information. Correct me if I'm wrong.

-- 
Alain
-------------------------------------------------
Christian Science: When shit happens, don't call a doctor - pray!


Post a reply to this message

From: povray
Subject: Re: Linux gamma driving me nuts
Date: 13 Nov 2005 11:58:00
Message: <296e.43769087.3f51c@titanic>
Alain wrote:
> povray nous apporta ses lumieres en ce 2005-11-11 21:35:
> 
>> Ard wrote:
>>
>>> Here is an image in support of
>>>
http://news.povray.org/povray.newusers/thread/%3Cweb.4373f7155849a475ed802ab30%40news.povray.org%3

>>>
>>>
>>> Briefly put, Mozilla and Firefox on a Linux box, and IE via an rdesktop
>>> session, display my POV-generated PNGs much more brightly than image
>>> viewers and POV's own image previewer display them.
>>>
>>> The full rant is available in p.newusers.  I sure would appreciate your
>>> advice on this one folks.
>>>
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>
>>     The gamma chunk in PNG images has given me nothing but trouble.
>> Every browser, every program, seems to (over)compensate for gamma in a 
>> different way.  The answer is to make sure the png file has
>> no gamma chunk in it.
>>     Here is what I do ..
>>     Render/create image to Targa (tga) file.  Open said Targa
>> file in gimp.  Save as a PNG from gimp.  In the file save dialog, make 
>> sure that the "save gamma" box is NOT checked.  Save.  You
>> have just written a png that contains no gamma.  End of problem.
>>
>>
> If I remember corectly, if you DON'T include "assumed_gamma" then your 
> PNG don't include gamma information. Correct me if I'm wrong.
> 

By first rendering to TGA, a file that that cannot have gamma 
information in it, you ensure that povray does not include
gamma information.

By loading the TGA (with no gamma in it) and *then* saving from
gimp as already mentioned, in such a way that no gamma is written,
you are assured of a clean no-gamma-info file.


-- 
to all the companies who wait until a large user base becomes
dependant on their freeware, then shafting said happy campers with
mandatory payment for continued usage. I spit on your grave.


Post a reply to this message

From: Ard
Subject: Re: Linux gamma driving me nuts
Date: 13 Nov 2005 21:55:01
Message: <web.4377fc66ed2d9a67ed802ab30@news.povray.org>
Alain <ele### [at] netscapenet> wrote:

> If I remember corectly, if you DON'T include "assumed_gamma" then your PNG don't
> include gamma information. Correct me if I'm wrong.

I think I'm going to have to correct you there Alain.  PNGs generated with
POV-Ray 3.6.1 on Linux include gamma information (a gAMA chunk) whether the
source file contains assumed_gamma or not.

However your suggestion led me to discover the cause of one of my problems:
the value in the gAMA chunk in the PNG is set to 1.0 if a CPU histogram is
generated with +HTx.  It should be set to 1/display_gamma.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.