| 1 | Patch-Source: https://github.com/php/php-src/pull/7526
|
| 2 | From d3402bfd3e9a87b1d4ce3785e393e698746c645c Mon Sep 17 00:00:00 2001
|
| 3 | From: Andy Postnikov <[email protected]>
|
| 4 | Date: Tue, 28 Sep 2021 23:35:37 +0300
|
| 5 | Subject: [PATCH] display libavif version and codecs via phpinfo()
|
| 6 |
|
| 7 | ---
|
| 8 | ext/gd/gd.c | 9 +++++++++
|
| 9 | 1 file changed, 9 insertions(+)
|
| 10 |
|
| 11 | diff --git a/ext/gd/gd.c b/ext/gd/gd.c
|
| 12 | index 880d6dddc7d7..67349e8749bf 100644
|
| 13 | |
| 14 | |
| 15 | @@ -451,6 +451,15 @@
|
| 16 | #endif
|
| 17 | #ifdef HAVE_GD_AVIF
|
| 18 | php_info_print_table_row(2, "AVIF Support", "enabled");
|
| 19 | +#ifdef HAVE_GD_BUNDLED
|
| 20 | +#include <avif/avif.h>
|
| 21 | + {
|
| 22 | + php_info_print_table_row(2, "AVIF Version", avifVersion());
|
| 23 | + char tmp[256];
|
| 24 | + avifCodecVersions(tmp);
|
| 25 | + php_info_print_table_row(2, "AVIF Codecs", tmp);
|
| 26 | + }
|
| 27 | +#endif
|
| 28 | #endif
|
| 29 | #ifdef HAVE_GD_TGA
|
| 30 | php_info_print_table_row(2, "TGA Read Support", "enabled");
|