PHP code to add watermark to pictures
- $source=imagecreatefromjpeg('E:/image/guide_pic.jpg');
- $thumb=imagecreatefromjpeg('E:/image/l.JPG') ;
- //Get the width, height, type of the image
- list($width,$height,$mine)=getimagesize('E:/image/guide_pic.jpg');
- imagecopymerge ($source,$thumb,$width -124,$height-150,0,0,88,73,70);
- //Generate image
- imagejpeg($source,'E:/image/logo.jpg');
- ?>
Copy Code
|