The GD library is not enabled by default in php. If you want it to support image processing functions, we need to remove the previous; in extension=php_gd2.dll in php.ini. That’s it.
When the gd library of php is enabled on the windows server, gd does not appear in the Configure Command in the results obtained by phpinfo() after using cgi.
Find extension=php_gd2.dll in the php.ini file and remove the previous “;”.
Attached is also how to check whether the GD library code has been installed!
The code is as follows
|
Copy code
|
||||
if(extension_loaded('gd')) { echo 'You can use gd '; foreach(gd_info() as $cate=>$value) echo "$cate: $value "; }else echo 'You do not have gd extension installed'; ?> The result is shown as: You can use gd FreeType Linkage: with freetype T1Lib Support: 1GIF Read Support: 1 GIF Create Support: 1JPG Support: 1 PNG Support: 1WBMP Support: 1 XPM Support:XBM Support: 1 JIS-mapped Japanese Font Support: |
What is displayed after Configure Command is:
http://www.bkjia.com/PHPjc/629834.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/629834.htmlTechArticleThe GD library is not enabled by default in php. If we want it to support image processing functions, we need to enable it in php. In the ini, just remove extension=php_gd2.dll in front of ";" and it will be fine. In windows service...