Failed to convert to avif format

XnConvert Multi Platform - Windows, MacOSX, Linux

Moderator: xnview

phars
Posts: 14
Joined: Thu Aug 07, 2025 9:14 pm

Failed to convert to avif format

Post by phars »

As a Linux Mint user, I downloaded the latest version of XnConvert. I converted a PNG image to AVIF and received an error message saying "Not an image." However, it worked with any format other than AVIF.
Even when I converted from XnView, it didn't work. It just created a white file with a size of zero bits.
I tried the same thing with a different program, and it worked.
I hope for a quick response.]
User avatar
xnview
Author of XnView
Posts: 47277
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Failed to convert to avif format

Post by xnview »

do you have installed libheif?
Pierre.
phars
Posts: 14
Joined: Thu Aug 07, 2025 9:14 pm

Re: Failed to convert to avif format

Post by phars »

xnview wrote: Fri Aug 08, 2025 9:10 am do you have installed libheif?
No just libavif
And even this did not work with the program
User avatar
xnview
Author of XnView
Posts: 47277
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Failed to convert to avif format

Post by xnview »

libheif-dev is used
Pierre.
phars
Posts: 14
Joined: Thu Aug 07, 2025 9:14 pm

Re: Failed to convert to avif format

Post by phars »

xnview wrote: Sat Aug 09, 2025 5:50 am libheif-dev is used
yes
phars
Posts: 14
Joined: Thu Aug 07, 2025 9:14 pm

Re: Failed to convert to avif format

Post by phars »

I downloaded the libraries libheif libavif and nothing worked.
User avatar
xnview
Author of XnView
Posts: 47277
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Failed to convert to avif format

Post by xnview »

phars wrote: Wed Aug 13, 2025 6:41 pm I downloaded the libraries libheif libavif and nothing worked.
only libheif/libheif-dev is needed. which libheif.so do you have?
Pierre.
phars
Posts: 14
Joined: Thu Aug 07, 2025 9:14 pm

Re: Failed to convert to avif format

Post by phars »

xnview wrote: Thu Aug 14, 2025 5:42 am
phars wrote: Wed Aug 13, 2025 6:41 pm I downloaded the libraries libheif libavif and nothing worked.
only libheif/libheif-dev is needed. which libheif.so do you have?
libheif.so.1 (libc6,x86-64) => /lib/x86_64-linux-gnu/libheif.so.1
libheif.so (libc6,x86-64) => /lib/x86_64-linux-gnu/libheif.so

Is there something missing?
User avatar
xnview
Author of XnView
Posts: 47277
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Failed to convert to avif format

Post by xnview »

phars wrote: Thu Aug 14, 2025 2:09 pm Is there something missing?
all seems good, i've tried on ubuntu 24 and no problem to write in avif :(
Pierre.
phars
Posts: 14
Joined: Thu Aug 07, 2025 9:14 pm

Re: Failed to convert to avif format

Post by phars »

xnview wrote: Fri Aug 15, 2025 6:28 am
phars wrote: Thu Aug 14, 2025 2:09 pm Is there something missing?
all seems good, i've tried on ubuntu 24 and no problem to write in avif :(
I am using the latest version of Linux Mint and yet I still encounter the problem. The strange thing is that I did not encounter this problem in Windows. :(
In Linux, when I convert an image to this avif format, it gives me an error message but creates images with a size of 0 bytes.
phars
Posts: 14
Joined: Thu Aug 07, 2025 9:14 pm

Re: Failed to convert to avif format

Post by phars »

What should I do now? ;-;
User avatar
xnview
Author of XnView
Posts: 47277
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Failed to convert to avif format

Post by xnview »

i've installed latest Mint, and right you need to install libheif-plugin*
Pierre.
phars
Posts: 14
Joined: Thu Aug 07, 2025 9:14 pm

Re: Failed to convert to avif format

Post by phars »

xnview wrote: Sun Aug 17, 2025 7:58 am i've installed latest Mint, and right you need to install libheif-plugin*
Excellent and what is the best way to install and ensure its operation? :D
phars
Posts: 14
Joined: Thu Aug 07, 2025 9:14 pm

Re: Failed to convert to avif format

Post by phars »

I have converted the image to heic format manually using this command

Code: Select all

heif-enc input.jpg -o output.heic
It worked and the same thing happened with avif
But it did not work with the program
Image
You do not have the required permissions to view the files attached to this post.
User avatar
xnview
Author of XnView
Posts: 47277
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Failed to convert to avif format

Post by xnview »

phars wrote: Tue Aug 19, 2025 12:03 pm But it did not work with the program
do you have installed libheif-plugin*?
Pierre.