Home PHP Libraries Picture library Add text watermark to existing pictures php code class
Add text watermark to existing pictures php code class

Add text watermark to existing pictures php code class, This class library only supports text watermark for the time being, the location is the lower right corner, and the color is random.

Calling method:
1. Introduce the class library at the top of the file that needs to be watermarked:
include_once 'imageClass.php';
2. Declare a new class:
$tpl=new image_fu;
3. Provide parameters for the image watermark:
$tpl->img(picture path, watermark text, font path, font size, font angle);
For example: $tpl->img('abc.jpg','This is watermark text','ziti.ttf',30,0)

Disclaimer

All resources on this site are contributed by netizens or reprinted by major download sites. Please check the integrity of the software yourself! All resources on this site are for learning reference only. Please do not use them for commercial purposes. Otherwise, you will be responsible for all consequences! If there is any infringement, please contact us to delete it. Contact information: admin@php.cn

Related Article

Add text watermark php code to existing images Add text watermark php code to existing images

25 Jul 2016

Add text watermark php code to existing images

PHP adds text watermark and image watermark code to pictures (1/3)_PHP tutorial PHP adds text watermark and image watermark code to pictures (1/3)_PHP tutorial

13 Jul 2016

PHP adds text watermark and image watermark code to pictures (1/3). PHP adds text watermarks to pictures and picture watermark codes. When this program adds text watermarks to pictures, it calls the C:\WINDOWS\Fonts\SIMHEI.TTF font. When adding watermarks to pictures, you can customize the pictures.

PHP code to add watermark to pictures PHP code to add watermark to pictures

25 Jul 2016

PHP code to add watermark to images

How to add text watermark to pictures in php How to add text watermark to pictures in php

11 Jul 2017

This article shares with you the method of adding watermarks to images using PHP. It is very detailed and comprehensive. Friends in need can refer to it.

PHP code to output text to pictures (text watermark) PHP code to output text to pictures (text watermark)

25 Jul 2016

PHP code to output text to pictures (text watermark)

PHP code to add Chinese watermark to pictures PHP code to add Chinese watermark to pictures

25 Jul 2016

PHP code to add Chinese watermark to pictures

See all articles