From 2dd6ef4f19a73496848cbe9c7629d93271f257df Mon Sep 17 00:00:00 2001 From: vAugagneur Date: Fri, 15 Feb 2013 12:13:13 +0100 Subject: [PATCH] [-] CORE : fixed bug #PSCFV-6545 - ImageManager::resize() error --- classes/ImageManager.php | 3 +++ 1 file changed, 3 insertions(+) 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.