【文件属性】:
文件名称:php给图片加文字水印
文件大小:47KB
文件格式:PDF
更新时间:2021-01-21 16:03:01
hp php 图片
注释非常的详细了,这里就不多废话了
<?php
/*给图片加文字水印的方法*/
$dst_path = 'http://huoche.7234.cn/images/jb51/e1borcv2lph.jpg';
$dst = imagecreatefromstring(file_get_contents($dst_path));
/*imagecreatefromstring()--从字符串中的图像流新建一个图像,返回一个图像标示符,其表达了从给定字符串得来的图像
图像格式将自动监测,只要php支持jpeg,png,gif,wbmp,gd2.*/
$font = './t1.ttf';
$bl