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

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

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