Download the PHP package kaia/watermarking without Composer
On this page you can find all versions of the php package kaia/watermarking. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download kaia/watermarking
More information about kaia/watermarking
Files in kaia/watermarking
Download kaia/watermarking
More information about kaia/watermarking
Files in kaia/watermarking
Vendor kaia
Package watermarking
Short Description PHP Packages for adding watermark on image
License MIT
Package watermarking
Short Description PHP Packages for adding watermark on image
License MIT
Please rate this library. Is it a good library?
Informations about the package watermarking
Introduction
PHP Package where you can insert your own watermark on image. This package using PHP-GD for generating the watermark, so make sure you have PHP-GD installed before you use this package. For now this package only support on 4 positions, and will get update on future.
Requirement
- php >= 8.0
- php-gd
Installation
To install this package, run
Now you can use it into your PHP project
Available options
| For "createFromText" method. | Key | Type | Value | Default Value | Note |
|---|---|---|---|---|---|
| position | string | top-left, top-right, bottom-left, bottom-right | top-left | optional | |
| size | integer | any number | 12 | optional | |
| color | string | hex color code (example #ffffff) | #ffffff | optional | |
| font | string | path to your .ttf file | arial.ttf | optional |
| For "createFromImage" method. | Key | Type | Value | Default Value | Note |
|---|---|---|---|---|---|
| position | string | top-left, top-right, bottom-left, bottom-right | top-left | optional | |
| opacity | integer | between 0.1 - 1.0 | 0.5 | optional | |
| scale | integer | between 0.1 - 1.0 | 0.2 | optional |
Example case :
I want create watermark with text "I am Kaia" on existing image :
- Source Image Path = storage/images/image.jpeg
- Destination Image Path = storage/images/watermarked/watermarked.jpeg
- Watermark Position = Top Left
- Watermark Font Size = 16
- Font Path = storage/fonts/arial.ttf
And the output will be like :
Support me
All versions of watermarking with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.0
The package kaia/watermarking contains the following files
Loading the files please wait ...