Page 1 of 1

0.97.1: Embedded color profiles in 16bpc png files are ignored

Posted: Sun Nov 22, 2020 4:27 pm
by jsXnv333
XnView: 0.97.1 64bits (Oct 13 2020)
OS: Windows 10 64bit

Embedded color profiles are ignored when 16 bit per channel png images are loaded, even with ICC settings enabled. This bug doesn't seem to happen for 8 bpc pngs or for 16 bpc files in other formats like psd or tif.

Effect: 16 bpc pngs are displayed with the wrong colors.

This is especially important because recent versions of iOS (maybe Android too?) now save screenshots as 16 bpc pngs with the Display P3 color profile by default, which means lots of images will not display the correct colors in XnView.

To reproduce:
1. Enable ICC color profile settings in XnView.
2. Download the photograph (jpg) of the car from this site: https://petapixel.com/2012/06/25/is-you ... r-managed/
If embedded color profiles are correctly enabled, the car will appear orange. If not, it will appear purple.
3. Open the image in an image editor such as Photoshop, preserving the embedded profile as the working color space.
4. Convert the image to 16 bits per channel. (Photoshop CS6: Image menu>Mode>16 Bits/Channel)
5. Save the image as a png, preserving the color profile.
6. Open the new png in XnView.

(I apologise for not providing a sample image directly, but the above image uses a custom color profile that readily highlights the issue.)

Actual behaviour: XnView fails to apply the embedded color profile and the car appears purple.

Expected behaviour: XnView correctly applies the embedded color profile and the car appears orange.

Re: 0.97.1: Embedded color profiles in 16bpc png files are ignored

Posted: Mon Nov 23, 2020 4:21 pm
by xnview
:bugconfirmed: Thanks to your detailed description I can reproduce the problem.

Re: 0.97.1: Embedded color profiles in 16bpc png files are ignored

Posted: Tue Nov 24, 2020 4:41 pm
by jsXnv333
That's great news, I hope to see a fix in a future version!

Re: 0.97.1: Embedded color profiles in 16bpc png files are ignored

Posted: Mon Dec 14, 2020 2:34 pm
by xnview
This problem is supposed to be fixed in XnView MP 0.98.0. Please check and confirm the bug fix here.

Re: 0.97.1: Embedded color profiles in 16bpc png files are ignored

Posted: Mon Dec 14, 2020 3:21 pm
by jsXnv333
I just tested it and can confirm it is working now - thanks for the fix!!