0

I using the the new php8.1 function is imageavif but that throw error message undefined function and then print the gdinfo() but avif is not enabled so how to enable it?

Dharman
  • 30,962
  • 25
  • 85
  • 135
UserL
  • 11
  • Duplicate of https://stackoverflow.com/questions/70398133/php8-1-how-do-i-get-imageavif-to-work – Dharman Feb 14 '22 at 17:12

1 Answers1

0

You must compile PHP 8.1 GD extension (--enable-gd) with AVIF support (--with-avif) in the ./configure script.

Source: https://php.watch/versions/8.1/gd-avif

user83129
  • 13
  • 2
  • 5