note 28979 modified in function.imagecopyresized by tularis

From: Date: Wed, 29 Jan 2003 18:25:37 +0000
Subject: note 28979 modified in function.imagecopyresized by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-43085@lists.php.net to get a copy of this message
[Editor's Note] I modified the note so it contains a working script [/Note] Does anyone know how so create e new file from the newly sized image created with codes like this one ??? <? $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)); $img = ImageGif($dst_img); echo $img; ?> --was-- Does anyone know how so create e new file from the newly sized image created with codes like this one ??? <? $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/en/function.imagecopyresized.php

« previous php.notes (#43085) next »