Page 1 of 1

1.6.5 - save - avif - color shifts

Posted: Sun Mar 03, 2024 7:58 am
by user0
XnViewMP 1.6.5 64bit
Windows11 (23H2), display resolution 3840x2160, win scaling 150%


Save - format
color shifts when saved into AVIF
result_comparison.png
result_comparison.png (2.17 KiB) Viewed 1084 times

To reproduce:
1. save any image (eg test png) into AVIF via XnViewMP (any format settings, eg lossless, 444-420)
test_img.zip
(2.1 KiB) Downloaded 39 times
result image looks same as source
2. check source/result images in FastStone / Photoshop / MS Paint / MS Photos
colors are slightly different

not sure who exactly has issue here

ps. nomacs, online converter convert to AVIF without such issue, colors remain the same

Re: 1.6.5 - save - avif - color shifts

Posted: Mon Mar 04, 2024 4:58 pm
by Kadet
I test one image with set ICC Profile and in my opinion issue is in MS Paint which don't look for ICC.

Re: 1.6.5 - save - avif - color shifts

Posted: Sun Mar 10, 2024 10:12 am
by xnview
user0 wrote: Sun Mar 03, 2024 7:58 am ps. online converter converts to AVIF without such issue, colors remain the same
the file is HEIF not AVIF

Re: 1.6.5 - save - avif - color shifts

Posted: Thu Mar 21, 2024 2:29 pm
by tuwulin365
I think it is a problem caused by WIC (Windows Imaging Component).
Mspaint decodes AVIF through WIC. WIC decoding AVIF causes color difference.

Re: 1.6.5 - save - avif - color shifts

Posted: Wed Mar 27, 2024 11:39 am
by user0
Just found out that Nomacs can save into AVIF as well (guess via heif.dll of different version), and result opens in mentioned apps without issues.
test_img.zip updated

Could the problem be that wrong ICC profile is embedded in the resulting image?

UPD 2024-04-02
noticed that AVIFs with transparency (from dell site) looks OK in XnViewMP, Nomacs and browsers, but not other apps:
avif_dell.png
avif_dell.zip
(1.08 MiB) Downloaded 30 times