PHP | gd_info() Function Last Updated : 23 Aug, 2019 Comments Improve Suggest changes Like Article Like Report The gd_info() function is an inbuilt function in PHP which is used to retrieve the information about the currently installed GD library. This function returns the information about the version and capabilities of the installed GD library. Syntax: array gd_info( void ) Parameters: This function does not accept any parameter. Return Value: This function returns an associative array contains information about installed GD library. The information returned by this function are listed below: GD Version: It is an string value describing the installed libgd version. FreeType Support: It is a boolean value. It is True if FreeType Support is installed. FreeType Linkage: It is a string describing the way in which FreeType was linked. Expected values are: with freetype, with TTF library, and with unknown library. This element will only be defined if FreeType Support evaluated to TRUE. T1Lib Support: It is a boolean value. It is True if T1Lib support is included. GIF Read Support: It is boolean value. It return True if support for reading GIF images is included. GIF Create Support: It is a boolean value. It return True if support for creating GIF images is included. JPEG Support: It is a boolean value. It return True if JPEG support is included. PNG Support: It is a boolean value. It return True if PNG support is included. WBMP Support: It is a boolean value. It return True if WBMP support is included. XBM Support: It is a boolean value. It return True if XBM support is included. WebP Support: It is a boolean value. It return True if WebP support is included. Below program illustrate the gd_info() function in PHP: Program: php <?php var_dump(gd_info()); ?> Output: array(12) { ["GD Version"]=> string(26) "bundled (2.1.0 compatible)" ["FreeType Support"]=> bool(true) ["FreeType Linkage"]=> string(13) "with freetype" ["GIF Read Support"]=> bool(true) ["GIF Create Support"]=> bool(true) ["JPEG Support"]=> bool(true) ["PNG Support"]=> bool(true) ["WBMP Support"]=> bool(true) ["XPM Support"]=> bool(true) ["XBM Support"]=> bool(true) ["WebP Support"]=> bool(true) ["JIS-mapped Japanese Font Support"]=> bool(false) } Related Articles: PHP | getimagesize() Function PHP | imagecolorat() function Reference: http://php.net/manual/en/function.gd-info.php Comment More infoAdvertise with us Next Article PHP | gd_info() Function V vijay_raj Follow Improve Article Tags : Misc Web Technologies PHP Image-Processing PHP-function +1 More Practice Tags : Misc Similar Reads PHP | gmp_gcd() Function The gmp_gcd() is an in built function in PHP which is used to calculate the GCD of 2 GMP numbers (GNU Multiple Precision : For large numbers). Syntax: gmp_gcd ( $num1, $num2 ) Parameters: This function accepts two GMP numbers $num1 and $num2 as parameters. This function calculates the GCD of these t 1 min read PHP | gmp_intval() Function The gmp_intval() is an inbuilt function in PHP which converts a GMP number to an integer. Here GMP refers to GNU Multiple Precision which is for large numbers.Syntax:  int gmp_intval ( $num ) Parameters: The function accepts a single parameter $num which is a GMP number and returns its integer valu 2 min read PHP | gmdate() Function The gmdate() is an inbuilt function in PHP which is used to format a GMT/UTC date and time and return the formatted date strings. It is similar to the date() function but it returns the time in Greenwich Mean Time (GMT). Syntax: string gmdate ( $format, $timestamp ) Parameters: The gmdate() function 2 min read PHP password_get_info() Function The password_get_info() is an inbuilt PHP function where detailed information regarding the given hash will be returned. Syntax: password_get_info(string $hash): arrayParameter: This function accepts a single parameter: hash: This parameter defines the hash of the password by creating the password_h 1 min read PHP | imagegd() function The imagegd() function is an inbuilt function in PHP which is used to output GD image to browser or file. This is most useful to convert any other image type to gd. imagecreatefromgd() function can be used to further read gd images. Syntax: bool imagegd( resource $image, float $to) Parameters:This 2 min read Like