Easy Tutorial
❮ Func String Htmlentities Func Date Parse From Format ❯

PHP gd_info - Get Information About the Currently Installed GD Library

PHP Image Processing

gd_info — Get 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

<?php
var_dump(gd_info());
?>

The above example will output:

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 explanation:

Attribute Meaning
GD Version String value. Describes the version of the installed libgd.
FreeType Support Boolean value. TRUE if FreeType support is installed.
FreeType Linkage String value. Describes the method of FreeType linkage. 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.

Related Articles

PHP Image Processing

❮ Func String Htmlentities Func Date Parse From Format ❯