From 763fe1cc1df66d65ab30b8eb62fe4815179df76d Mon Sep 17 00:00:00 2001 From: ben Date: Wed, 30 Apr 2008 10:26:51 +0000 Subject: Resizing images now resamples them for better clarity. git-svn-id: https://code.elgg.org/elgg/trunk@571 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/filestore.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engine/lib/filestore.php') diff --git a/engine/lib/filestore.php b/engine/lib/filestore.php index d61b257ca..fb37fee57 100644 --- a/engine/lib/filestore.php +++ b/engine/lib/filestore.php @@ -538,7 +538,8 @@ if (is_callable($function) && $oldimage = $function($_FILES[$input_name]['tmp_name'])) { // Resize and return the image contents! - imagecopyresized($newimage, $oldimage, 0,0,0,0,$newwidth,$newheight,$width,$height); + imagecopyresampled($newimage, $oldimage, 0,0,0,0,$newwidth,$newheight,$width,$height); + // imagecopyresized($newimage, $oldimage, 0,0,0,0,$newwidth,$newheight,$width,$height); ob_start(); imagejpeg($newimage, null, 90); $jpeg = ob_get_clean(); -- cgit v1.2.3