post-thumbnail-editor icon indicating copy to clipboard operation
post-thumbnail-editor copied to clipboard

PTE should check if GD is installed

Open maximejobin opened this issue 11 years ago • 1 comments

GD was not installed and no warning or error were raised to let the user know it needed the library.

I had to check the code and to find that out. A simple way to find that out:

<?php
if (extension_loaded('gd') && function_exists('gd_info')) {
    echo "GD library is installed.";
}
else {
    echo "GD library is NOT installed.";
}
?>

maximejobin avatar Nov 05 '14 21:11 maximejobin

Thanks, I'll add this to the next version.

sewpafly avatar Nov 15 '14 19:11 sewpafly