daochong

<?php
//这里仅仅是为了案例需要准备一些素材图片
$url=\'http://www.iyi8.com/uploadfile/2014/0521/20140521105216901.jpg\';
$content=file_get_contents($url);
$filename=\'tmp.jpg\';
file_put_contents($filename,$content);
$url=\'http://wiki.ubuntu.org.cn/images/3/3b/Qref_Edubuntu_Logo.png\';
file_put_contents(\'logo.png\',file_get_contents($url));
//开始添加水印操作
$im=imagecreatefromjpeg($filename);
$logo=imagecreatefrompng(\'logo.png\');
$size=getimagesize(\'logo.png\');
imagecopy($im,$logo,15,15,0,0,$size[0],$size[1]);

header("content-type:image/jpeg");
imagejpeg($im);

分类:

技术点:

相关文章:

  • 2021-08-14
  • 2022-01-22
  • 2022-02-08
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-19
  • 2022-12-23
  • 2021-12-29
  • 2021-11-12
相关资源
相似解决方案