Page 1 of 1
					
				Decoding error on 16 bit AVIF
				Posted: Tue Jan 11, 2022 3:51 pm
				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 
			
					
				Re: Decoding error on 16 bit AVIF
				Posted: Thu Jan 13, 2022 1:07 pm
				by xnview
				yes strange, the AVIF library doesn't like this file
			 
			
					
				Re: Decoding error on 16 bit AVIF
				Posted: Thu Jan 13, 2022 1:43 pm
				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.
 
			
					
				Re: Decoding error on 16 bit AVIF
				Posted: Sun Jun 12, 2022 3:56 pm
				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
 
			
					
				Re: Decoding error on 16 bit AVIF
				Posted: Mon Jul 18, 2022 10:58 am
				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.
			 
			
					
				Re: Decoding error on 16 bit AVIF
				Posted: Mon Jan 23, 2023 4:15 pm
				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).
 
			
					
				Re: Decoding error on 16 bit AVIF
				Posted: Sat Jan 28, 2023 12:59 pm
				by xnview
				
  Thanks to your detailed description I can reproduce 
the problem.
 
			
					
				Re: Decoding error on 16 bit AVIF
				Posted: Mon Feb 27, 2023 10:08 am
				by xnview
				This problem is supposed to be fixed in 
XnView MP 1.4.3. Please check and confirm the bug fix here.
 
			
					
				Re: Decoding error on 16 bit AVIF
				Posted: Wed Mar 08, 2023 11:17 am
				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.