tp5.1图片缩略图保透明底
修改文件
\vendor\topthink\think-image\src\Image.php
修改
$color = imagecolorallocate($img, 255, 255, 255);
为
$color = imagecolorallocatealpha($img, 0, 0, 0, 127);
修改文件
\vendor\topthink\think-image\src\Image.php
修改
$color = imagecolorallocate($img, 255, 255, 255);
为
$color = imagecolorallocatealpha($img, 0, 0, 0, 127);
评论
评论列表
暂无评论,快来抢沙发吧~