php-windows Digest 28 Nov 2004 18:32:56 -0000 Issue 2486

Topics (messages 25053 through 25053):

alpha png to gif with transparent
        25053 by: Exiang

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
IT seem to be impossible as the alpha png is 24 bit and gif can only be 256 
color.. 
however, is there any alternative which at least make the generated transparent 
gif look good?

this is my code.. but itdin work

<?php
 $img1 = imagecreatefrompng('logommu.png');
$back = imagecolorallocate($img1, 255, 255, 255);
imagecolortransparent($img1, $back);
imagetruecolortopalette($img1, true, 255);
 header("Content-type: image/gif");
 imagegif($img1);
?>

--- End Message ---

Reply via email to