Where exactly did you find this?As I can't find --with-openavif in the config file.
Received on discord.Where exactly did you find this?
Because normally the --with-something statements are added to the build config for php building, not to the custombuild options.conf
Check this:
Doesn't it get installed automatically if you do it like the doc says?Any Idea how to install OPENAVIF Libary.
[root@top-secret custombuild]# /usr/local/php81/bin/php -i | grep AVIF
AVIF Support => enabled
[root@top-secret custombuild]#
/usr/local/php81/bin/php -i | grep AVIF
AVIF Support => enabled
test.php
with the following content:<?php
$image = imagecreatefromjpeg('coffee.jpg'); //read a jpg file
imageavif($image, 'coffee.avif'); //save an avif file
/usr/local/php81/bin/php test.php
, and here is a directory listing:$ ls -la coffee.avif coffee.jpg test.php
-rw-r--r-- 1 admin admin 42783 Dec 10 23:15 coffee.avif
-rw-r--r-- 1 admin admin 117713 Nov 23 2016 coffee.jpg
-rw-r--r-- 1 admin admin 124 Dec 10 23:14 test.php
$ strings coffee.avif | head -1
ftypavif
image/avif avif;
/etc/nginx/mime.types
afterimage/webp webp;
image/avif avif
/etc/httpd/conf/mime.types
image/webp webp
grep avif /usr/local/lsws/conf/mime.properties
:# grep avif /usr/local/lsws/conf/mime.properties
avif = image/avif
Running on OpenLiteSpeed with Debian 11
grep avif /usr/local/lsws/conf/mime.properties