php图片添加水印的例子

<?php
  $source=imagecreatefromjpeg('E:/image/guide_pic.jpg');
  $thumb=imagecreatefromjpeg('E:/image/l.JPG');

//取得图片的宽度,高度,类型
  list($width,$height,$mine)=getimagesize('E:/image/guide_pic.jpg');
  imagecopymerge ($source,$thumb,$width-124,$height-150,0,0,88,73,70);

//生成图片
  imagejpeg($source,'E:/image/logo.jpg');
?>


 

猜你喜欢

转载自blog.csdn.net/u014413032/article/details/24317621