1.6.5 - save - avif - color shifts

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

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
User avatar
user0
XnThusiast
Posts: 2414
Joined: Sat May 09, 2015 9:37 am

1.6.5 - save - avif - color shifts

Post 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 1086 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 40 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
Last edited by user0 on Wed Mar 27, 2024 9:33 am, edited 4 times in total.
Kadet
Posts: 208
Joined: Thu Oct 20, 2022 7:23 pm

Re: 1.6.5 - save - avif - color shifts

Post 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.
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.6.5 - save - avif - color shifts

Post 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
Pierre.
tuwulin365
Posts: 12
Joined: Mon Dec 06, 2021 1:55 pm

Re: 1.6.5 - save - avif - color shifts

Post 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.
User avatar
user0
XnThusiast
Posts: 2414
Joined: Sat May 09, 2015 9:37 am

Re: 1.6.5 - save - avif - color shifts

Post 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
Post Reply