作者 wangxueqiang
1 个管道 的构建 通过 耗费 0 秒

注释掉出背景的所有元素3

... ... @@ -202,7 +202,7 @@ class UploadController extends RestUserBaseController
$logourlsy = 300;
//4.生成目标图像资源 微信头像
$logourl_small = imagecreatetruecolor($logourlsx,$logourlsy);
$color1 = imagecolorallocate($logourl_small, 255, 120, 43);
$color1 = imagecolorallocate($logourl_small, 255, 255, 255);
imagefill($logourl_small, 0, 0, $color1);
imageColorTransparent($logourl_small, $color1);
//5.进行缩放
... ... @@ -211,7 +211,7 @@ class UploadController extends RestUserBaseController
$erweimaurl = imagecreatefromstring($xmlstr);
$image_3 = imageCreatetruecolor(imagesx($beijing),imagesy($beijing));
$color2 = imagecolorallocate($image_3, 255, 255, 255);
$color2 = imagecolorallocate($image_3, 255, 120, 43);
imagefill($image_3, 0, 0, $color2);
imageColorTransparent($image_3, $color2);
imagecopyresampled($image_3,$beijing,0,0,0,0,imagesx($beijing),imagesy($beijing),imagesx($beijing),imagesy($beijing));
... ...