From 4864f1d5b49e4dcd65abe40c8b62b0b403e5b0df Mon Sep 17 00:00:00 2001 From: ben Date: Tue, 29 Apr 2008 15:57:36 +0000 Subject: Non-invasive fix for previous. git-svn-id: https://code.elgg.org/elgg/trunk@561 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/filestore.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engine/lib') diff --git a/engine/lib/filestore.php b/engine/lib/filestore.php index 9cd981128..a5d381fbc 100644 --- a/engine/lib/filestore.php +++ b/engine/lib/filestore.php @@ -537,7 +537,8 @@ // Resize and return the image contents! imagecopyresized($newimage, $oldimage, 0,0,0,0,$newwidth,$newheight,$width,$height); - return imagejpeg($newimage); + imagejpeg($newimage, $_FILES[$input_name]['tmp_name'] . $newwidth . $newheight . ".tmp", 90); + return file_get_contents($_FILES[$input_name]['tmp_name'] . $newwidth . $newheight . ".tmp"); } -- cgit v1.2.3