Skip to content

Commit a1f0b98

Browse files
committed
display libavif version and codecs via phpinfo()
1 parent 70545b7 commit a1f0b98

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ext/gd/gd.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,11 @@ PHP_MINFO_FUNCTION(gd)
605605
#endif
606606
#ifdef HAVE_GD_AVIF
607607
php_info_print_table_row(2, "AVIF Support", "enabled");
608+
#include <avif/avif.h>
609+
php_info_print_table_row(2, "AVIF Version", avifVersion());
610+
char tmp[256];
611+
avifCodecVersions(tmp);
612+
php_info_print_table_row(2, "AVIF Codecs", tmp);
608613
#endif
609614
#ifdef HAVE_GD_TGA
610615
php_info_print_table_row(2, "TGA Read Support", "enabled");

0 commit comments

Comments
 (0)