1.0: AVIF files incompatible with Android 12 - Why?

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

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
User avatar
masterjp
Posts: 471
Joined: Fri Feb 13, 2009 4:37 pm
Location: Duesseldorf, Germany

1.0: AVIF files incompatible with Android 12 - Why?

Post by masterjp »

Today I tested avif files generated by XnviewMP 1.0 on my samsung smartphone and tablet with android 12 (latest android updates from may 2022).
Android 12 supports the avif file format. I converted different files to the avif file format with XnviewMP 1.0 and all of them are incompatible with android 12! XnviewMP can open the avif files. That is strange. I used different color bitrates (8, 10, 12 bit) and compression and effort levels to check, which format is the best for android 12. All of them are not viewed on android 12 gallery apps!

So I tried the website https://squoosh.app/ to compress the same picture files to avif format. I saved the files and tested them on my android 12 devices. The generated pictures of squoosh.app work perfect!

Why are the XnviewMP avif files incompatible with Android 12?

I attached 2 files for testing. One is from XnViewMP and another generated by squuoosh.app.
Avif-Test-files.zip
PC: Intel 8700k + Asus Z370-F + 16 GB RAM G.Skill + Asus RTX 3050 OC + Samsung SSD
OS: Windows 10 Pro 64bit 22H2 |
GFX: XnViewMP 1.8.7 | XN-View 2.52.0 | XnConvert 1.104.0 | Adobe Photoshop Elements 2024 | Elements XXL 11 | Paint.Net 5.1.7
User avatar
xnview
Author of XnView
Posts: 46255
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: XnViewMP 1.0 - AVIF files incompatible with Android 12 - Why?

Post by xnview »

do you have tried to change in 4:2:0?
Pierre.
User avatar
masterjp
Posts: 471
Joined: Fri Feb 13, 2009 4:37 pm
Location: Duesseldorf, Germany

Re: XnViewMP 1.0 - AVIF files incompatible with Android 12 - Why?

Post by masterjp »

Yes, I tested 4:4:4, 4:2:2 and 4:2:0. Also I tried loseless and lossy. All are incompatible.

I read an internet article about differenct avif specifications.
Version 1.0 was released in 2019. Now we have version 1.1.

To find the reason for the incompatibility I used Paint.NET mit AVIF plugin to save some sample files.
Some of them do not work with Android 12, too! Maybe your program and Paint.NET AVIF plugin use the same avif library to save the files!?

Which version of libavif XnViewMP use? Is it version 0.9.3?

There is a newer pre-release version 0.10.1 available from april 2022.
The changelog contain some information about android and a out of memory problem,
but I did not understand what they fixed.
PC: Intel 8700k + Asus Z370-F + 16 GB RAM G.Skill + Asus RTX 3050 OC + Samsung SSD
OS: Windows 10 Pro 64bit 22H2 |
GFX: XnViewMP 1.8.7 | XN-View 2.52.0 | XnConvert 1.104.0 | Adobe Photoshop Elements 2024 | Elements XXL 11 | Paint.Net 5.1.7
User avatar
xnview
Author of XnView
Posts: 46255
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: XnViewMP 1.0 - AVIF files incompatible with Android 12 - Why?

Post by xnview »

masterjp wrote: Mon May 30, 2022 7:52 pm Which version of libavif XnViewMP use? Is it version 0.9.3?
yes
Pierre.
User avatar
masterjp
Posts: 471
Joined: Fri Feb 13, 2009 4:37 pm
Location: Duesseldorf, Germany

Re: XnViewMP 1.0 - AVIF files incompatible with Android 12 - Why?

Post by masterjp »

The website https://squoosh.app/ which produce compatible android 12 avif files uses an older libavif version 0.5.4.

---

Now I read different internet articles and discussion boards, that android 12 have a limited support for avif.
Some users have problems with files over 1 MB or pictures sizes bigger than 4096x4096 pixels.

My files are smaller in filesize and picture size.
I could not see any further informations, how to encode the avif files and which settings are recommend to get the full android compatibility.
PC: Intel 8700k + Asus Z370-F + 16 GB RAM G.Skill + Asus RTX 3050 OC + Samsung SSD
OS: Windows 10 Pro 64bit 22H2 |
GFX: XnViewMP 1.8.7 | XN-View 2.52.0 | XnConvert 1.104.0 | Adobe Photoshop Elements 2024 | Elements XXL 11 | Paint.Net 5.1.7
Post Reply