note 64160 added to function.imagecopyresampled

From: Date: Sun, 09 Apr 2006 03:20:27 +0000
Subject: note 64160 added to function.imagecopyresampled
Groups: php.notes 
Request: Send a blank email to php-notes+get-107578@lists.php.net to get a copy of this message
<? ... $t_im = imageCreateTrueColor($t_wd,$t_ht); imageAntiAlias($t_im,true); imagealphablending($t_im, false); imagesavealpha($t_im,true); $transparent = imagecolorallocatealpha($t_im, 255, 255, 255, 127); imagefilledrectangle($t_img, 0, 0, $t_wd, $t_ht, $transparent); imageCopyResampled($t_im, $o_im, 0, 0, 0, 0, $t_wd, $t_ht, $o_wd, $o_ht); imagePNG($t_im, $image_name); ... ?> ------- The above does NOT work to preserve transparency in a PNG image for me. The error is obviously in imageCopyResample - the image created up to imagefilledrectangled have tested transparency to be working, but as soon as it is resampled all transparency is lost. Can anyone give any pointers on this? ---- Server IP: 195.184.96.15 Probable Submitter: 194.239.204.184 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.imagecopyresampled.php Edit -- http://master.php.net/note/edit/64160 Del: integrated -- http://master.php.net/note/delete/64160/integrated Del: useless -- http://master.php.net/note/delete/64160/useless Del: bad code -- http://master.php.net/note/delete/64160/bad+code Del: spam -- http://master.php.net/note/delete/64160/spam Del: non-english -- http://master.php.net/note/delete/64160/non-english Del: in docs -- http://master.php.net/note/delete/64160/in+docs Del: other reasons-- http://master.php.net/note/delete/64160 Reject -- http://master.php.net/note/reject/64160 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#107578) next »