Re: Linearizing RGB after conversion from YCbCr rec709 trans
Posted: 2011-08-27T08:44:51-07:00
The IM PNG encoder doesn't do any colorspace conversion. If you have a linear RGB image incorrectly marked sRGB, then the PNG encoder will write the linear RGB image, but will also write the sRGB chunk. Then any viewer or decoder that understands the sRGB chunk will do the conversion (actually will not do any conversion when it thinks the image and screen are both sRGB) and the display will be wrong. If you have such an incorrectly marked PNG, you can simply replace the sRGB chunk with a "gAMA 100000" chunk using "convert +gamma 1.0" to inform decoders that the image is linear RGB and needs to be converted for display.anthony wrote:WARNING: IM will automatically convert from a linear RGB image marked sRGB to non-liear form when saving to some file formats like PNG This can confuse things.