I had a more careful look and now I can confirm that it does keep the original image data, however, seems like there is a caching bug which confused me into thinking the issue is still there.xnview wrote: Tue Jun 20, 2023 8:21 am It's like that in 1.5.0 beta 1, the saved image keep original image data. you are on Windows? How to reproduce?
1.5.0 beta 1 now does save the original image data, but would keep a cache of the image somewhere (?) that has the wrong (shifted) color, so when re-open the saved image in XnView MP, it would appear to have wrong colors.
Yes I'm on Windows 10 22H2, and here is how to reproduce it:
- Unzip the 1.5.0 beta 1 archive, run it, and make sure "Use ICC profile for monitor" is enabled;
- Open a JPG file that doesn't have an embedded ICC profile;
- Save it as a PNG file with default "Write settings" to the same folder;
- Now switch back and forth between the original and saved images, they should appear to have same colors (FWIW this is also true in the current stable release, one needs to close and re-open the images to see the color difference);
- However, now close the open image, open it again in XnView MP, switch back and forth between the two, the colors would appear to be different;
- Open the two images in any other programs, with or without color management, colors are always the same, confirming the saved image does have the original image data;
- In Windows File Explorer, make a copy of the saved PNG file, give it a different file name, put it under the same folder, now open them in XnView MP and switch between the three files, the new copy of the PNG file would appear to have the same colors as the original, while the saved PNG still shows the wrong colors.
Given the two PNG files are exact copies (I even verified that they have the same SHA256 hash), I guess this is likely caused by the wrong image cache that XnView MP saved somewhere.