When I create image from this:
imagecopy($im, $stamp, imagesx($im) - $sx - $marge_right, imagesy($im) - $sy - $marge_bottom, 0, 0, imagesx($stamp), imagesy($stamp));
I can output it like this:
header('Content-type: image/png');
But how can I save it?
You can use below code to save the image.
imagepng($imagename, $mapimage_path , 0);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With