PHP图片加水印功能如何实现?
- 内容介绍
- 文章标签
- 相关推荐
本文共计67个文字,预计阅读时间需要1分钟。
PHP为图片加水印的代码示例:php
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'); ?>
本文共计67个文字,预计阅读时间需要1分钟。
PHP为图片加水印的代码示例:php
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'); ?>

