PHP gd_info - Get information about the currently installed GD library
gd_info — Get information about the currently installed GD library.
Syntax
array gd_info ( void )
Returns an associative array describing the version and performance of the installed GD library.
Example
<?php var_dump(gd_info()); ?>
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:
| Attribute | Meaning |
|---|---|
| GD Version | string value. Describes the version of the installed libgd. |
| Freetype Support | boolean value. True if Freetype support is installed.TRUE。 |
| Freetype Linkage | string value. Describes the method of Freetype linking. Possible values: 'with freetype', 'with TTF library' and 'with unknown library'. This element is only defined when the value of Freetype Support isTRUEdefined. |
| T1Lib Support | boolean value. True if T1Lib support is included.TRUE。 |
| GIF Read Support | boolean value. True if support for reading GIF images is included.TRUE。 |
| GIF Create Support | boolean value. True if support for creating GIF images is included.TRUE。 |
| JPG Support | boolean value. True if JPG support is included.TRUE。 |
| PNG Support | boolean value. True if PNG support is included.TRUE。 |
| WBMP Support | boolean value. True if WBMP support is included.TRUE。 |
| XBM Support | boolean value. True if XBM support is included.TRUE。 |
Related Articles
- imagepng()Output an image to the browser or a file in PNG format.
- imagejpeg()Output an image to the browser or a file in JPEG format.
- imagegif()Output an image to the browser or a file in GIF format.
- imagewbmp()Output an image to the browser or a file in WBMP format.
- imagetypes()Returns the image types supported by the current PHP version.
PHP Image Processing