图片打水印
$img = imagecreatefromjpeg("要打水印的图片");
imagestring($img,5,5,5,"水印文字",imagecolorallocate($img,r,g,b));//打水印

header("Content-type:image/png");
imagepng($img);//输出

首页 我的博客
粤ICP备17103704号