aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-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();