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

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 09:48:36
Original
1585 people have browsed it

一款超级简单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);
source:php.cn
Statement of this Website
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
Latest Issues
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template