note 1723 modified in ImageCopyResized by ronabop
| From: | ronabop@php.net | Date: | Sun, 20 Aug 2000 11:00:25 +0000 |
| Subject: | note 1723 modified in ImageCopyResized by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-2708@lists.php.net to get a copy of this message | ||
saw this one on the ng and it works fine - just trying to figure it out for jpg.
<?
$new_w=100;
$new_h=100;
header("Content-type: image/gif");
$dst_img=ImageCreate($new_w,$new_h);
$src_img=ImageCreateFromGif("./imgtest.gif");
ImageCopyResized($dst_img,$src_img,0,0,0,0,$new_w,$new_h,ImageSX($src_img),ImageSY($src_img));
ImageGif($dst_img);
?>
http://www.php.net/manual/function.imagecopyresized.php