Home >php教程 >php手册 >一款超级简单php图片水印代码

一款超级简单php图片水印代码

WBOY
WBOYOriginal
2016-06-13 09:48:361553browse

一款超级简单php教程图片水印代码
在php中给图片增加水印有imagecreatefromjpeg imagecreatefrompng imagecopymerge imagejpeg就成了,只要你设置原图与水印图片就成了,下面看实例。
*/

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);
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn