alpha png to gif with transparent

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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);
?>

[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux