Skip to content

Commit 8a5db91

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

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ext/gd/gd.c

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

0 commit comments

Comments
 (0)