I have a server running Ubuntu 24.04.2 running Imagemagick Version 6.9.12-98 and it support AVIF images without any problem.
On another server running Ubuntu 20.04.6 it fails. When I try to convert AVIF images with Imagemagick like this:
magick test.avif test.jpg
fails with the following error:
magick: no decode delegate for this image format `AVIF' @ error/constitute.c/ReadImage/746.
I've tried compiling Imagemagick from source to ImageMagick 7.1.1-44 with no success. Running this:
magick -list format | grep AVIF
returns:
AVIF --- AV1 Image File Format (1.12.0)
As the three dashes are the "mode" - this seems to indicate that those files cannot be read, written or otherwise.
How can I compile Imagemagick to support AVIF images? Is there a specific library I need to install first? Or some configuration option I am missing?