gd_info — Get information about the currently installed GD library.
array gd_info (void)
Returns an associative array describing the version and capabilities of the installed GD library.
<?phpvar_dump(gd_info());?>
The output result of the above example 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)}
Return result description:
property | meaning |
---|---|
GD Version | string value. Describes the version of libgd installed. |
Freetype Support | boolean value. TRUE if Freetype support is installed. |
Freetype Linkage | string value. Describes the Freetype connection method. Possible values are: 'with freetype', 'with TTF library' and 'with unknown library'. This unit is only defined when Freetype Support is TRUE . |
T1Lib Support | boolean value. TRUE if T1Lib support is included. |
GIF Read Support | boolean value. TRUE if support for reading GIF images is included. |
GIF Create Support | boolean value. TRUE if support for creating GIF images is included. |
JPG Support | boolean value. TRUE if JPG support is included. |
PNG Support | boolean value. TRUE if PNG support is included. |
WBMP Support | boolean value. TRUE if WBMP support is included. |
XBM Support | boolean value. TRUE if XBM support is included. |
imagepng() Outputs an image in PNG format to a browser or file.
imagejpeg() Outputs an image in JPEG format to a browser or file.
imagegif() Outputs an image in GIF format to a browser or file.
imagewbmp() Outputs an image in WBMP format to a browser or file.
imagetypes() Returns the image types supported by the current PHP version.