[geeklog-cvs] geeklog: When using gdlib, use imagecopyresampled instead or ima...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sat Nov 15 15:12:59 EST 2008


details:   http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/309c2727ccb5
changeset: 6466:309c2727ccb5
user:      Dirk Haun <dirk at haun-online.de>
date:      Sat Nov 15 16:21:23 2008 +0100
description:
When using gdlib, use imagecopyresampled instead or imagecopyresized to scale images

diffstat:

1 file changed, 3 insertions(+), 3 deletions(-)
system/classes/upload.class.php |    6 +++---

diffs (16 lines):

diff -r 5aca9b24800f -r 309c2727ccb5 system/classes/upload.class.php
--- a/system/classes/upload.class.php	Sat Nov 15 13:27:09 2008 +0100
+++ b/system/classes/upload.class.php	Sat Nov 15 16:21:23 2008 +0100
@@ -665,9 +665,9 @@
                     unlink ($filename);
                 }
 
-                imagecopyresized ($image_dest, $image_source, 0, 0, 0, 0,
-                                  $newwidth, $newheight, $imageInfo['width'],
-                                  $imageInfo['height']);
+                imagecopyresampled($image_dest, $image_source, 0, 0, 0, 0,
+                                   $newwidth, $newheight, $imageInfo['width'],
+                                   $imageInfo['height']);
                 if (($this->_currentFile['type'] == 'image/png') OR
                     ($this->_currentFile['type'] == 'image/x-png')) {
                     if (!imagepng ($image_dest, $filename)) {



More information about the geeklog-cvs mailing list