Page 1 of 1

Undesired conversion of ICC profile

Posted: Sat Jul 01, 2023 1:48 pm
by AndreasW
Using XnView MP 1.5.0 beta 4 on Mac with Intel processor.

When you download the HEIC file from here, open it in XnView MP, and save it in PNG format, the ICC profile of the PNG file will be different from the ICC profile of the original HEIC file.

ICC profile of HEIC file: Display P3
ICC profile of PNG file: Generic RGB profile

This undesired conversion of the ICC profile is bad.

Re: Undesired conversion of ICC profile

Posted: Tue Jul 04, 2023 12:40 pm
by xnview
yes strange. I don't understand why your other example is good and not this one. MAcOS API returns a generic profile

Re: Undesired conversion of ICC profile

Posted: Sat Jul 08, 2023 8:58 am
by AndreasW
It appears that this issue only occurs with images in vertical/portrait format. Horizontal/landscape images do not have this problem.

And the issue only occurs with unprocessed HEIC files that come directly from the iPhone. HEIC files that have been processed by another application, such as GraphicConverter 12, and then opened in XnView MP do not have this problem.

Re: Undesired conversion of ICC profile

Posted: Sun Jul 09, 2023 8:17 am
by AndreasW
Here are two more test photos of the same subject, taken with the same iPhone:

vertical.heic does have the problem.
horizontal.heic does not have the problem.

BTW, if macOS API is really the culprit, then why doesn't the same problem occur with Apple's Preview.app?

Re: Undesired conversion of ICC profile

Posted: Wed Jul 12, 2023 2:46 pm
by xnview
:bugconfirmed: Thanks to your detailed description I can reproduce the problem.

Re: Undesired conversion of ICC profile

Posted: Wed Jul 19, 2023 2:08 pm
by xnview
This problem is supposed to be fixed in XnView MP 1.5.1. Please check and confirm the bug fix here.

Re: Undesired conversion of ICC profile

Posted: Wed Jul 19, 2023 5:01 pm
by AndreasW
The problem is fixed in v1.5.1. Thank you very much!