PHP 给图片加边框
程序员文章站
2022-06-14 12:25:53
...
header("Content-type: image/png");$im = @imagecreatetruecolor(282, 282) or die("Cannot Initialize new GD image stream");imagecopy($im, imagecreatefrompng('C02D9CE4B4B6E3F6DF8D9DB734.png'), 1,1,0,0,281,281);imagepng($im, 'xxx.png');imagedestroy($im);
添加前:
添加后: