Decoding error on 16 bit AVIF

Older bugs which are supposed to be fixed in 0.84. *** Please try to reproduce your bug and confirm the bug fix. ***

Moderators: XnTriq, helmut, xnview, Dreamer

za_ita
Posts: 2
Joined: Tue Jan 11, 2022 3:33 pm

Decoding error on 16 bit AVIF

Post by za_ita »

AVIF images created by Photoshop in 16 bit are not supported from XnView MP.
Chrome open correctly. Test file here: https://www.byza.it/tmp/test.avif
User avatar
xnview
Author of XnView
Posts: 43719
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Decoding error on 16 bit AVIF

Post by xnview »

yes strange, the AVIF library doesn't like this file
Pierre.
za_ita
Posts: 2
Joined: Tue Jan 11, 2022 3:33 pm

Re: Decoding error on 16 bit AVIF

Post by za_ita »

This problem affects all files saved from Photoshop using Av1Image.8bi plugin.
Source code: https://github.com/0xC0000054/avif-format

Actually I prefer convert 16 bit TIFF to AVIF using this plugin than XnView because of 16 bit support.
tyski
Posts: 1
Joined: Sun Jun 12, 2022 3:44 pm

Re: Decoding error on 16 bit AVIF

Post by tyski »

Hello, this is still not fixed, all the AVIF files I export from GIMP can't be opened by XnView MP (works fine in Chrome, GIMP)
It used to work before viewtopic.php?f=62&t=42804&p=174636
I added a sample file

OS: win 10 64bit
You do not have the required permissions to view the files attached to this post.
novomeskyd
Posts: 1
Joined: Sat Mar 14, 2020 1:56 pm

Re: Decoding error on 16 bit AVIF

Post by novomeskyd »

GIMP and the Photoshop AVIF plug-in use libheif library to save AVIF.

Older versions of libheif created AVIF which was not 100% standard-compliant.

When such AVIF was opened via new versions of libavif, the image was rejected because of the strict standard check (which is the default):
[Strict] Item ID 1 of type 'av01' is missing mandatory pixi property

There are two possible solutions:
1) Upgrade the libheif-based applications to newer versions (For example latest GIMP for Windows should use newer libheif)
2) Software using libavif can disable the strict checks ( strictFlags = AVIF_STRICT_DISABLED) and loading of AVIF files from old GIMP will be possible.
dedbombom
Posts: 39
Joined: Tue May 18, 2021 3:22 pm

Re: Decoding error on 16 bit AVIF

Post by dedbombom »

For me AVIF images viewing not worked since maybe it was implemented till latest versions. XnView MP can save to avif but can't open it afterwards! Also any other *.avif files created in any other tool (avifenc, nconvert, GIMP, Paint.NET, etc). In plugins tab at about page it shows as it should and I'm using portable version (downloaded from here https://download.xnview.com/XnViewMP-win-x64.zip).
User avatar
xnview
Author of XnView
Posts: 43719
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Decoding error on 16 bit AVIF

Post by xnview »

:bugconfirmed: Thanks to your detailed description I can reproduce the problem.
Pierre.
User avatar
xnview
Author of XnView
Posts: 43719
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Decoding error on 16 bit AVIF

Post by xnview »

This problem is supposed to be fixed in XnView MP 1.4.3. Please check and confirm the bug fix here.
Pierre.
dedbombom
Posts: 39
Joined: Tue May 18, 2021 3:22 pm

Re: Decoding error on 16 bit AVIF

Post by dedbombom »

I dunno why but if I open avif image from XnView with open file command all ok. But if I open it from Windows explorer with mouse click then instead of image XnView shows just white screen with no errors.