[BUG] 8Bit PNG output Gamma issue

Feature requests, bug reports and related discussion
Post Reply
4 posts • Page 1 of 1
User avatar
Zom-B
1st Place 100
Posts: 4701
Joined: Tue Jul 04, 2006 4:18 pm
Location: ´'`\_(ò_Ó)_/´'`
Contact:

[BUG] 8Bit PNG output Gamma issue

Post by Zom-B » Thu Jan 05, 2012 9:00 pm

Hey Guys, I just did a recent test with EXR vs PNG output.

Doing that I recognized that Indigos PNG Output seems is different to EXR @ gamma 0.454545454.. => 8bit
PNG-vs-EXR.gif
Click for bigger view!
It seems that Indigo does gamma correction of the image after converting to 8bit!
Doing so in Photoshop I get a 99.5% similar result to the PNG output!

Isn't it correct and "lossless" to do so in the 32bit image and convert then to 8bit?!
polygonmanufaktur.de

StompinTom
Indigo 100
Posts: 1828
Joined: Mon Sep 04, 2006 3:33 pm

Re: [BUG] 8Bit PNG output Gamma issue

Post by StompinTom » Fri Jan 06, 2012 6:28 am

Zom-B wrote:Hey Guys, I just did a recent test with EXR vs PNG output.

Doing that I recognized that Indigos PNG Output seems is different to EXR @ gamma 0.454545454.. => 8bit
PNG-vs-EXR.gif
It seems that Indigo does gamma correction of the image after converting to 8bit!
Doing so in Photoshop I get a 99.5% similar result to the PNG output!

Isn't it correct and "lossless" to do so in the 32bit image and convert then to 8bit?!
Could that perhaps be the source of some of the banding problems we've experienced as well?

User avatar
Zom-B
1st Place 100
Posts: 4701
Joined: Tue Jul 04, 2006 4:18 pm
Location: ´'`\_(ò_Ó)_/´'`
Contact:

Re: [BUG] 8Bit PNG output Gamma issue

Post by Zom-B » Fri Jan 06, 2012 6:35 am

StompinTom wrote:Could that perhaps be the source of some of the banding problems we've experienced as well?
Something that could be checked quite easy :)
Any Thread here about this, maybe with some example file to test?
polygonmanufaktur.de

FakeShamus
Posts: 512
Joined: Wed May 02, 2007 11:34 am

Re: [BUG] 8Bit PNG output Gamma issue

Post by FakeShamus » Fri Jan 06, 2012 8:34 am

here are some tests I made to show the banding I've been dealing with. just flat sky with camera tonemapping (color is super-exaggerated, of course, to highlight the problem).

I tested converting the gamma of the tonemapped exr in photoshop both before and after downgrading the file to 8-bit rgb and you get similar banding either way. (2nd image)

the main thing that seems to be missing in Indigo is a dithering function. If you convert to 8 bit from 32 in photoshop, using dithering, it eliminates the problem (3rd image). you get a slightly rougher grain structure if you convert to 8bit first and then do the gamma correction, but still, no banding.
Attachments
sky_banding_8bit_curve.png
8 bit png output from Indigo
exr_no_dither_comp.png
exr conversion without dither
exr_with_dither_comp.png
exr conversion using dither

Post Reply
4 posts • Page 1 of 1