diff --git a/classes/ImageManager.php b/classes/ImageManager.php index 257c3356c..57a3d4a52 100644 --- a/classes/ImageManager.php +++ b/classes/ImageManager.php @@ -168,6 +168,9 @@ class ImageManagerCore } } + if (!ImageManager::checkImageMemoryLimit($src_file)) + return false; + $dest_image = imagecreatetruecolor($dst_width, $dst_height); // If image is a PNG and the output is PNG, fill with transparency. Else fill with white background.