Page 1 of 2

Failed to convert to avif format

Posted: Thu Aug 07, 2025 9:28 pm
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.]

Re: Failed to convert to avif format

Posted: Fri Aug 08, 2025 9:10 am
by xnview
do you have installed libheif?

Re: Failed to convert to avif format

Posted: Fri Aug 08, 2025 5:40 pm
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

Re: Failed to convert to avif format

Posted: Sat Aug 09, 2025 5:50 am
by xnview
libheif-dev is used

Re: Failed to convert to avif format

Posted: Sun Aug 10, 2025 6:43 am
by phars
xnview wrote: Sat Aug 09, 2025 5:50 am libheif-dev is used
yes

Re: Failed to convert to avif format

Posted: Wed Aug 13, 2025 6:41 pm
by phars
I downloaded the libraries libheif libavif and nothing worked.

Re: Failed to convert to avif format

Posted: Thu Aug 14, 2025 5:42 am
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?

Re: Failed to convert to avif format

Posted: Thu Aug 14, 2025 2:09 pm
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?

Re: Failed to convert to avif format

Posted: Fri Aug 15, 2025 6:28 am
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 :(

Re: Failed to convert to avif format

Posted: Fri Aug 15, 2025 7:37 am
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.

Re: Failed to convert to avif format

Posted: Sat Aug 16, 2025 11:04 am
by phars
What should I do now? ;-;

Re: Failed to convert to avif format

Posted: Sun Aug 17, 2025 7:58 am
by xnview
i've installed latest Mint, and right you need to install libheif-plugin*

Re: Failed to convert to avif format

Posted: Mon Aug 18, 2025 6:03 pm
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

Re: Failed to convert to avif format

Posted: Tue Aug 19, 2025 12:03 pm
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

Re: Failed to convert to avif format

Posted: Wed Aug 20, 2025 8:02 am
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*?