所以我基本上是这样的:
$img = imagecreatefrompng('assets/other/redcircle.png');
imagepng($img);
imagedestroy($img);因此,redcircle.png文件具有透明度(具有抗锯齿功能)。但是GD只是把所有的透明度都变成了黑色吗?有没有办法恢复原来的透明度?
发布于 2010-09-14 09:35:58
您必须告诉GD使用imagesavealpha:http://www.php.net/manual/en/function.imagesavealpha.php保存alpha
https://stackoverflow.com/questions/3705543
复制相似问题