How to check for PHP GD Library

You can also use custom php code to check for PHP GD support. For this we will be using function_exists and extension_loaded functions. Here is the code. Save this file as gdinfo.php and run it on server.

<?php if (extension_loaded(gd) && function_exists(gd_info)) { echo 'PHP GD library is enabled in your system.'; } else { echo 'PHP GD library is not enabled on your system.'; }?>