PHP gd_info - access to information currently installed GD library
gd_info - access to information currently installed GD library.
grammar
array gd_info ( void )
It returns an associative array describes the installation and performance version of the GD library.
Examples
<?php var_dump(gd_info()); ?>
The above example output is:
array(9) { ["GD Version"]=> string(24) "bundled (2.0 compatible)" ["FreeType Support"]=> bool(false) ["T1Lib Support"]=> bool(false) ["GIF Read Support"]=> bool(true) ["GIF Create Support"]=> bool(false) ["JPG Support"]=> bool(false) ["PNG Support"]=> bool(true) ["WBMP Support"]=> bool(true) ["XBM Support"]=> bool(false) }
(S) Description:
Attributes | meaning |
---|---|
GD Version | string value. It describes version libgd installed. |
Freetype Support | boolean value. If you install Freetype support was TRUE. |
Freetype Linkage | string value. It describes a method Freetype connection. The value may be: 'with freetype', 'with TTF library' and 'with unknown library'. This unit only when Freetype Support is TRUE definition. |
T1Lib Support | boolean value. If contains T1Lib support was TRUE. |
GIF Read Support | boolean value. If you include a reader GIF image support was TRUE. |
GIF Create Support | boolean value. If you create a GIF image contains support was TRUE. |
JPG Support | boolean value. If the support includes JPG was TRUE. |
PNG Support | boolean value. If contains PNG support was TRUE. |
WBMP Support | boolean value. If contains WBMP support would be TRUE. |
XBM Support | boolean value. If contains XBM support would be TRUE. |
related articles
- imagepng () in PNG format Output image to browser or file.
- imagejpeg () in JPEG format Output image to browser or file.
- imagegif () GIF format Output image to browser or file.
- imagewbmp () to WBMP format Output image to browser or file.
- imagetypes () Returns the current PHP version supported image types.