note 64178 added to function.imagecopyresized
| From: | Yoshi at osu1 dot php dot net | Date: | Sun, 09 Apr 2006 09:37:32 +0000 |
| Subject: | note 64178 added to function.imagecopyresized | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-107612@lists.php.net to get a copy of this message | ||
Resizes an image:
<?
header("Content-type:image/jpeg");
$size= getimagesize($_GET['image']);
$width= $_GET['width'];
$height = ($neuebreite/$size[0])*$size[1];
$oldimage= imagecreatefromjpeg($_GET['image']);
$newimage= imagecreate($width,$height);
imagecopyresized($newimage,0,0,0,0,$width,$height,$size[0],$size[1]);
imagejpeg($newimage);
imagedestroy($newimage);
imagedestroy($oldimage);
?>
<img src="thumbnail.php?image=holiday/me.jpg&width=200">
----
Server IP: 217.13.201.10
Probable Submitter: 217.247.249.46
----
X-Spam-Status: Yes, hits=5.2 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER,
HTML_IMAGE_ONLY_04,HTML_MESSAGE autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.imagecopyresized.php
Edit -- http://master.php.net/note/edit/64178
Del: integrated -- http://master.php.net/note/delete/64178/integrated
Del: useless -- http://master.php.net/note/delete/64178/useless
Del: bad code -- http://master.php.net/note/delete/64178/bad+code
Del: spam -- http://master.php.net/note/delete/64178/spam
Del: non-english -- http://master.php.net/note/delete/64178/non-english
Del: in docs -- http://master.php.net/note/delete/64178/in+docs
Del: other reasons-- http://master.php.net/note/delete/64178
Reject -- http://master.php.net/note/reject/64178
Search -- http://master.php.net/manage/user-notes.php