From 1f25e8176e5e025ca6a1adbefca1bf939e9f4760 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sun, 29 Mar 2009 22:21:44 +0000 Subject: raised file limit for image resizing to 2.5 MB from .9 MB --- actions/upload.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actions') diff --git a/actions/upload.php b/actions/upload.php index b506cde5b..ba9d005c8 100644 --- a/actions/upload.php +++ b/actions/upload.php @@ -58,8 +58,8 @@ array_push($uploaded_images, $file->guid); // Generate thumbnail - //TODO: REMOVE THE BELOW IF STATEMENT ONCE get_resized_image_from_existing_file() ACCEPTS IMAGES OVER 0.9MB IN SIZE - if (filesize($file->getFilenameOnFilestore())<= 943718) { //create thumbnails if file size < 0.9MB + //TODO: This code needs a complete rewrite - hardcoded to ~2.5 MB + if (filesize($file->getFilenameOnFilestore())<= 2500000) { try { $thumblarge = get_resized_image_from_existing_file($file->getFilenameOnFilestore(),600,600, false); } catch (Exception $e) { $thumblarge = false; } -- cgit v1.2.3