PHP Classes

File: docs/add_watermark.md

Recommend this page to a friend!
  Classes of Chun-Sheng, Li   Selective PHP Image Manipulation   docs/add_watermark.md   Download  
File: docs/add_watermark.md
Role: Auxiliary data
Content type: text/markdown
Description: Auxiliary data
Class: Selective PHP Image Manipulation
Perform several types of image manipulation
Author: By
Last change:
Date: 1 year ago
Size: 800 bytes
 

Contents

Class file image Download

Add Watermark

In this sample, you will learn how to add the watermark to the specific image file.

Add watermark

$image = new Image();
$imageFile = '/path/to/source.jpg';
$imageWatermarkFile = '/path/to/background.jpeg';
$watermarkedImageResource = $image->addWatermark($imageFile, $imageWatermarkFile, ['sharpen' => true]);

The available parameters are as follows:

  • 
    
  • 
    
  •