aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-30 10:26:51 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-30 10:26:51 +0000
commit763fe1cc1df66d65ab30b8eb62fe4815179df76d (patch)
tree40dc484f54c4afc46b6e556102640841d9816513 /engine/lib
parent45701db779d3e310a14afde5e8ff9d7cab56c533 (diff)
downloadelgg-763fe1cc1df66d65ab30b8eb62fe4815179df76d.tar.gz
elgg-763fe1cc1df66d65ab30b8eb62fe4815179df76d.tar.bz2
Resizing images now resamples them for better clarity.
git-svn-id: https://code.elgg.org/elgg/trunk@571 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/filestore.php3
1 files changed, 2 insertions, 1 deletions
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();