当前位置:Gxlcms > PHP教程 > gd-PHP旋转PNG图片后图片变为无色,白色的样子

gd-PHP旋转PNG图片后图片变为无色,白色的样子

时间:2021-07-01 10:21:17 帮助过:11人阅读

$source = imagecreatefrompng($fullFileName);
$rotate = imagerotate($source, 90, 0);
imagepng($rotate,$fullFileName,75);

三行代码,jpg的就没事,png的就变无色了

回复内容:

$source = imagecreatefrompng($fullFileName);
$rotate = imagerotate($source, 90, 0);
imagepng($rotate,$fullFileName,75);

三行代码,jpg的就没事,png的就变无色了

人气教程排行