• Support
  • GD avif support in PHP 8.1.3

I need avif support by GD extension on PHP 8.1.3 because an extension of my website uses it.
I've seen is not available on your default php installer, neither in the compiled install.
Please, can you tell me a workaround to implement this when compiling the installer?
I tried with the option '--with-avif' under Adding Custom Modules button, but no success.
I'ts Almalinux 9.5 and I think I have the lib libavif-devel installed.

I can ssh any command you tell me, I've located the install.sh file but have no idea about if I have to modify and install it by terminal.

Please help me.
Thanks in advanced.

    Hello, the system's ImageMagick needs to support AVIF, try installing libavif
    Use convert -list format|grep AVIF at the same time to check whether it is supported

    RobertAApanel

      aaPanel_Kern
      I have libavif installed. Itried also to install the ImageMagick extension, but it doesn't work. The addon I have on website works under GD. Anyway the command convert -list format|grep AVIF doesn't show anything.

      I've seen command line tutorials to install it on bare systems, but I cannot figure out how to do it on a aapanel based system.

      Please tell me how can I do to compile the PHP8.1.3 with GD avif support.

      Thanks again.

        Hello,
        You need to check whether the system software program supports it first. PHP is also supported by using the corresponding program.
        Try reinstalling GD with ImageMagick program, not extension

        RobertAApanel

        Please can you tell me how can I recompile php8.1.3 with the last version of GD (2.3)? The GD lib you use says "compatible with 2.1", very old.