Image response if GD fails on PHP 7, making it behave identical to exec.
Incompatible with PHP 5, where it will show a generic html error page,
regressing for convert exceptions.
try {
$target = mkthumb($imgpath, $width, $height);
}
try {
$target = mkthumb($imgpath, $width, $height);
}
http_response_code($e->getCode() ?: 500);
$target = '500.png';
if (file_exists($target)) {
http_response_code($e->getCode() ?: 500);
$target = '500.png';
if (file_exists($target)) {