tapakan / watermark
Add watermark to image
1.0.1
2016-05-01 19:23 UTC
Requires
- php: >=5.3
- tapakan/file: 1.0.1
- tapakan/path: 1.0.1
Requires (Dev)
- phpunit/php-code-coverage: ^3
- phpunit/phpunit: 5.2.0
This package is not auto-updated.
Last update: 2025-02-01 21:30:40 UTC
README
#ImageBuilder Library that helps you easily add watermark to your images. It can be integrated with any system without problems.
##Install Edit composer.json file and add next lines in require section.
"require": { "tapakan/watermark": "1.0.1" }
##Using
require 'vendor/autoload.php' use Tapakan\Watermark\Watermark; $watermark = new Watermark($arg1, $arg2); //$arg1 - Path to watermark file. For example: images/watermark.png //$arg2 - By second argument you can change destination position of watermark. See Available positions sector. // Then add watermark to someone image. $watermark->add('/images/image.jpeg');
Image will be saved with same name and to the same directory.
Available Positions
There are 5 available constants to change the destination position of watermark.