Wrong color profile conversion when saving a photo which has ICC profile

*** Please report new bugs here! ***

Moderator: Dreamer

Post Reply
simohno
Posts: 6
Joined: Sun Jan 03, 2021 2:47 pm

Wrong color profile conversion when saving a photo which has ICC profile

Post by simohno »

Hello

I noticed that when a photo which is ICC-tagged (meaning it has an "ICC profile" data structure in the metadata, for example Adobe RGB 1998) is edited in XNV and then exported with File > Save As, when in the Options window the option "Preserve ICC profile" is checked, something really annoying happens for a photographer point of view:
The colours are converted to the monitor profile set in the Settings (in my case, that registered at the OS level, option "System"), and the monitor profile is (correctly) associated to the exported file.

So, instead of preserving the photo's colour profile (in the example, Adobe RGB), XNView makes an unwanted conversion, hence clipping/compressing the colours that are outside the monitor's gamut. The colours keep displayed correctly, but the fact that a photo gets described with a monitor profile is really annoying and is something "sacrilegious" in photography. I am starting using GIMP for every small edit, even if XNView is quicker.

I suppose this is an unintended behaviour, and it contrasts with the good colour managing workflow rules, so I reported it among the Bugs and in my opinion needs urgent revision as follows: the conversion of RGB values to the monitor profile is to do for the visualizing purpose only, after every edit, and the operations on the file have to be done in the original colour space! Thus preserving that colour space when saving.


Important side note: the File > Export module, contrarily to Save As > Options, lacks the possibility to incorporate an ICC profile, the current is discarded and colours are not converted to sRGB -> upon the next opening the image is wrongly interpreted as sRGB and the colours are wrong.
Ideally I would like to have an option to convert to a specified colour space in the JPEG format Options tab (e.g. to convert to sRGB for web publication).

Many thanks. Also, developers, please check my Suggestions also about colour management in XNView in the other forum page.
As a reference for corrections you can experiment with the GIMP (GNU) which behaves correctly with colour profiles, both on file and on monitor side. At present, XNView is great for photographic work only until you start using any bit of color management...... :?


XNV MP version 0.98.1 on Windows 10 20H2 64 bit
User avatar
xnview
Author of XnView
Posts: 34943
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Wrong color profile conversion when saving a photo which has ICC profile

Post by xnview »

yes, when loading a file with ICC profile, image data are changed and if you save it, you'll have new datas
Pierre.
Armas
Posts: 4
Joined: Sun Jan 03, 2021 2:25 pm

Re: Wrong color profile conversion when saving a photo which has ICC profile

Post by Armas »

Hello,
I raised this issue once in my post of 5 Jan 2021.
Obviously it is not on the priority list.
But even so, XnView is a very helpful programme! Maybe this bug will be fixed one day :)
simohno
Posts: 6
Joined: Sun Jan 03, 2021 2:47 pm

Re: Wrong color profile conversion when saving a photo which has ICC profile

Post by simohno »

Yes I love XnView for its fullscreen view with customizable informations shown in the corner!
It also handles quite well the colour profiles of both files and monitors for loading the images (except for some out-of-camera JPEGs as reported in my other post).
I really hope that a correction for the saving will come in the near future, and I am pleased to be not the sole to have noticed it!

Simone
Post Reply