note 81076 added to function.imagegif
| From: | serhio_forever at yahoo dot com | Date: | Wed, 13 Feb 2008 14:24:05 +0000 |
| Subject: | note 81076 added to function.imagegif | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-136113@lists.php.net to get a copy of this message | ||
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);
----
Server IP: 69.147.83.197
Probable Submitter: 92.114.150.40
----
Manual Page -- http://www.php.net/manual/en/function.imagegif.php
Edit -- https://master.php.net/note/edit/81076
Del: integrated -- https://master.php.net/note/delete/81076/integrated
Del: useless -- https://master.php.net/note/delete/81076/useless
Del: bad code -- https://master.php.net/note/delete/81076/bad+code
Del: spam -- https://master.php.net/note/delete/81076/spam
Del: non-english -- https://master.php.net/note/delete/81076/non-english
Del: in docs -- https://master.php.net/note/delete/81076/in+docs
Del: other reasons-- https://master.php.net/note/delete/81076
Reject -- https://master.php.net/note/reject/81076
Search -- https://master.php.net/manage/user-notes.php