开发者社区 问答 正文

如何用php给图片加水印?

同新浪微博一样,上传的图片都加上自己的微博名,php该怎么实现?

展开
收起
落地花开啦 2016-06-14 17:20:59 2302 分享 版权
1 条回答
写回答
取消 提交回答
  • 喜欢技术,喜欢努力的人

    magettftext — 用 TrueType 字体向图像写入文本
    说明
    array imagettftext ( resource $image , float $size , float $angle , int $x , int $y , int $color , string $fontfile , string $text )

    使用 TrueType 字体将 指定的 text 写入图像。

    2019-07-17 19:38:18
    赞同 展开评论