note 39941 added to function.imagecopyresized
| From: | hirschy at hirschy dot at | Date: | Mon, 16 Feb 2004 15:12:14 +0000 |
| Subject: | note 39941 added to function.imagecopyresized | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-65218@lists.php.net to get a copy of this message | ||
Actually, there is a small mistake in the code sample for resizing (from schuele2) near
<?php
imagecopyresized
($newim,$im,0,0,0,0,$nwidth,$nheight,$width,$height);
?>
which should be (mixed up some variables..)
<?php
imagecopyresized
($newim,$im,0,0,0,0,$nwidth,$nheight,$currwidth,$currheight);
?>
... just for saving you a lot of time.
The script - btw - works excellently!
----
Manual Page -- http://www.php.net/manual/en/function.imagecopyresized.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+39941
Delete -- http://master.php.net/manage/user-notes.php?action=delete+39941&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+39941&report=yes
Search -- http://master.php.net/manage/user-notes.php