note 15717 deleted from function.imagecopyresized by aidan
| From: | aidan@php.net | Date: | Mon, 04 Oct 2004 09:40:42 +0000 |
| Subject: | note 15717 deleted from function.imagecopyresized by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-77929@lists.php.net to get a copy of this message | ||
Note Submitter: info at methmedia dot de
----
Header("Content-type: image/png");
$width=implode($argv,"");
$im1=imagecreatefrompng("timber.png");
$im=imagecreate($width, 12);
imagecopyresized ($im, $im1, 0, 0, 0, 0, $width, 12, ImageSX($im1), ImageSY($im1));
ImagePng($im);
ImageDestroy($im);
works only if the colordepth of the png-file is true color. i have tried it with 256 colors and the
picture was just black.