Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP gd_info - Get Information About the Currently Installed GD Library

PHP gd_info - Get Information About the Currently Installed GD Library

PHP Image ProcessingPHP Image Processing

gd_info — Gets information about the currently installed GD library.

Syntax



array gd_info ( void )

Returns an associative array describing the version and capabilities of the installed GD library.

Example





The output 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 value description:

property Meaning
GD Version string value. Describes the version of the installed libgd.
Freetype Support boolean value. TRUE if Freetype support is installed, otherwise FALSE TRUE.
Freetype Linkage string value. Describes how Freetype is linked. Possible values: 'with freetype', 'with TTF library', and 'with unknown library'. This unit is only defined when the Freetype Support value is TRUE defined.
T1Lib Support boolean value. TRUE if T1Lib support is included, otherwise FALSE TRUE.
GIF Read Support boolean value. TRUE if support for reading GIF images is included, otherwise FALSE TRUE.
GIF Create Support boolean value. TRUE if support for creating GIF images is included, otherwise FALSE TRUE.
JPG Support boolean value. TRUE if JPG support is included, otherwise FALSE TRUE.
PNG Support boolean value. TRUE if PNG support is included, otherwise FALSE TRUE.
WBMP Support boolean value. TRUE if WBMP support is included, otherwise FALSE TRUE.
XBM Support boolean value. TRUE if XBM support is included, otherwise FALSE TRUE.

Related Articles

PHP Image ProcessingPHP Image Processing