正在显示
1 个修改的文件
包含
7 行增加
和
7 行删除
@@ -221,12 +221,12 @@ class UploadController extends RestUserBaseController | @@ -221,12 +221,12 @@ class UploadController extends RestUserBaseController | ||
221 | $black = imagecolorallocate($image_3,255,255,255); | 221 | $black = imagecolorallocate($image_3,255,255,255); |
222 | $font = ROOT_PATH . 'public'."/static/font-awesome/fonts/simkai.ttf"; //写的文字用到的字体。字体最好用系统有得,否则会包charmap的错,这是黑体 | 222 | $font = ROOT_PATH . 'public'."/static/font-awesome/fonts/simkai.ttf"; //写的文字用到的字体。字体最好用系统有得,否则会包charmap的错,这是黑体 |
223 | //imagettftext设置生成图片的文本 | 223 | //imagettftext设置生成图片的文本 |
224 | - imagettftext($image_3,35,0,100,920,$black,$font,$nickname);//姓名 | ||
225 | - imagettftext($image_3,26,0,300,920,$black,$font,$position);//职称 | ||
226 | - imagettftext($image_3,26,0,100,980,$black,$font,$company);//公司 | ||
227 | - imagettftext($image_3,26,0,100,1040,$black,$font,$tel);//电话 | ||
228 | - imagettftext($image_3,26,0,100,1100,$black,$font,$email);//邮箱 | ||
229 | - imagettftext($image_3,26,0,440,1170,$black,$font,$tishi);//提示 | 224 | + //imagettftext($image_3,35,0,100,920,$black,$font,$nickname);//姓名 |
225 | + //imagettftext($image_3,26,0,300,920,$black,$font,$position);//职称 | ||
226 | + //imagettftext($image_3,26,0,100,980,$black,$font,$company);//公司 | ||
227 | + //imagettftext($image_3,26,0,100,1040,$black,$font,$tel);//电话 | ||
228 | + //imagettftext($image_3,26,0,100,1100,$black,$font,$email);//邮箱 | ||
229 | + //imagettftext($image_3,26,0,440,1170,$black,$font,$tishi);//提示 | ||
230 | //imagecopymerge($image_3,$logourl_small, 240,250,0,0,$logourlsx,$logourlsy,100);//左,上,右,下,宽度,高度,透明度 | 230 | //imagecopymerge($image_3,$logourl_small, 240,250,0,0,$logourlsx,$logourlsy,100);//左,上,右,下,宽度,高度,透明度 |
231 | //imagecopymerge($image_3,$youxiang, 50,350,0,0,imagesx($youxiang),imagesy($youxiang),100);//左,上,右,下,宽度,高度,透明度 | 231 | //imagecopymerge($image_3,$youxiang, 50,350,0,0,imagesx($youxiang),imagesy($youxiang),100);//左,上,右,下,宽度,高度,透明度 |
232 | //imagecopymerge($image_3,$dianhua, 50,390,0,0,imagesx($dianhua),imagesy($dianhua),100);//左,上,右,下,宽度,高度,透明度 | 232 | //imagecopymerge($image_3,$dianhua, 50,390,0,0,imagesx($dianhua),imagesy($dianhua),100);//左,上,右,下,宽度,高度,透明度 |
@@ -245,7 +245,7 @@ class UploadController extends RestUserBaseController | @@ -245,7 +245,7 @@ class UploadController extends RestUserBaseController | ||
245 | imageColorTransparent($small, $color3); | 245 | imageColorTransparent($small, $color3); |
246 | //5.进行缩放 | 246 | //5.进行缩放 |
247 | imagecopyresampled($small,$erweimaurl,0,0,0,0,$sx,$sy,$fx,$fy); | 247 | imagecopyresampled($small,$erweimaurl,0,0,0,0,$sx,$sy,$fx,$fy); |
248 | - imagecopymerge($image_3,$small, 450,875,0,0,imagesx($small),imagesy($small), 100); | 248 | + //imagecopymerge($image_3,$small, 450,875,0,0,imagesx($small),imagesy($small), 100); |
249 | //生成图片 | 249 | //生成图片 |
250 | $name = time().rand(1000,9999); | 250 | $name = time().rand(1000,9999); |
251 | imagepng($image_3,ROOT_PATH . 'public' . DS . 'upload/'.$name.'.png');//在浏览器上显示 | 251 | imagepng($image_3,ROOT_PATH . 'public' . DS . 'upload/'.$name.'.png');//在浏览器上显示 |
-
请 注册 或 登录 后发表评论