我使用新的php8.1函数是imageavif,但是这会抛出错误消息未定义的函数,然后打印gdinfo(),但是avif没有启用,那么如何启用它呢?
发布于 2022-02-14 17:36:29
您必须在--enable-gd脚本中使用AVIF支持(--with-avif)编译PHP8.1GD扩展( ./configure )。
--enable-gd
--with-avif
./configure
来源:https://php.watch/versions/8.1/gd-avif
https://stackoverflow.com/questions/70965543
相似问题