从函数imagecopy创建的图片如何保存

3

当我从这个创建图像:

imagecopy($im, $stamp, imagesx($im) - $sx - $marge_right, imagesy($im) - $sy - $marge_bottom, 0, 0, imagesx($stamp), imagesy($stamp));

我可以这样输出它:
header('Content-type: image/png');

但是我该如何保存它?
1个回答

3
您可以使用以下代码来保存图片。
imagepng($imagename, $mapimage_path  , 0);

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接