1.6.5 - save - avif - color shifts

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

Moderators: xnview, Dreamer

User avatar
user0
XnThusiast
Posts: 2847
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

To reproduce:
1. save any image (eg test png) into AVIF via XnViewMP (any format settings, eg lossless, 444-420)
test_img.zip
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
You do not have the required permissions to view the files attached to this post.
Last edited by user0 on Wed Mar 27, 2024 9:33 am, edited 4 times in total.
Kadet
Posts: 230
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: 47528
Joined: Mon Oct 13, 2003 7:31 am
Location: France

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: 2847
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
You do not have the required permissions to view the files attached to this post.