note 81076 deleted from function.imagegif by danbrown

From: Date: Tue, 09 Jun 2009 13:16:31 +0000
Subject: note 81076 deleted from function.imagegif by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-156598@lists.php.net to get a copy of this message
Note Submitter: serhio_forever at yahoo dot com ---- Note that when converting some transparent png to a gif image , it won't be transparent , don't know why... from gif to png works fine with : $img = imagecreatefromgif($name); $x = imageSX($img); $y = imageSY($img); $new_img = ImageCreateTrueColor($x, $y); imagealphablending($new_img, false); $colorTransparent = imagecolorallocatealpha($new_img, 0, 0, 0, 127); imagefill($new_img, 0, 0, $colorTransparent); imagesavealpha($new_img, true); imagepng($new_img, $dest, 5);

« previous php.notes (#156598) next »