(PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8)
gd_info — Obtém informações sobre a biblioteca GD instalada atualmente
Obtém informação sobre a versão e as capacidades da biblioteca GD instalada.
Esta função não possui parâmetros.
Retorna um array associativo.
| Atributo | Significado | 
|---|---|
| GD Version | Valor string descrevendo a versão da libgdinstalada. | 
| FreeType Support | Valor bool. truese o suporte FreeType estiver instalado. | 
| FreeType Linkage | Valor string dewscrevendo a maneira que
        FreeType foi linkado. Os valores esperados são: 'with freetype',
        'with TTF library', e 'with unknown library'. Este elemento será definido
        apenas se FreeType Supportfortrue. | 
| GIF Read Support | Valor bool. truese o suporte para ler imagensGIFestiver incluso. | 
| GIF Create Support | Valor bool. truese o suporte para criação de imagensGIFestiver incluso. | 
| JPEG Support | Valor bool. truese o suporte aJPEGestiver incluso. | 
| PNG Support | Valor bool. truese o suporte aPNGestiver incluso. | 
| WBMP Support | Valor bool. truese o suporte aWBMPestiver incluso. | 
| XBM Support | Valor bool. truese o suporte aXBMestiver incluso. | 
| WebP Support | Valor bool. truese o suporte aWebPestiver incluso. | 
| AVIF Support | Valor bool. truese o suporte aAVIFestiver incluso.
        Disponível a partir do PHP 8.1.0. | 
Exemplo #1 Usando gd_info()
<?php
var_dump(gd_info());
?>O exemplo acima produzirá algo semelhante a:
array(10) {
  ["GD Version"]=>
  string(24) "bundled (2.1.0 compatible)"
  ["FreeType Support"]=>
  bool(false)
  ["GIF Read Support"]=>
  bool(true)
  ["GIF Create Support"]=>
  bool(false)
  ["JPEG Support"]=>
  bool(false)
  ["PNG Support"]=>
  bool(true)
  ["WBMP Support"]=>
  bool(true)
  ["XBM Support"]=>
  bool(false)
  ["WebP Support"]=>
  bool(false)
  ["AVIF Support"]=>
  bool(false)
}
