A super simple php tutorial picture watermark code
To add a watermark to an image in PHP, you can use imagecreatefromjpeg, imagecreatefrompng, imagecopymerge, imagejpeg. As long as you set the original image and the watermark image, see an example below.
*/
header("content-type: image/jpeg");
$filename='temp/www.bKjia.c0m/zhutiai.com.jpg';
$im=imagecreatefromjpeg($filename);
$s=imagecreatefrompng('mb.bKjia.c0m/pic/water_template.png');
imagecopymerge($im,$s,0,200,0,0,365,27,20);
imagejpeg($im);