Skip to content

Latest commit

History

42 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

#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 = newWatermark($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.

CONSTANTPOSITION
RIGHT_TOP_CORNERRight top.
Margin from borders 10px
RIGHT_DOWN_CORNERRight down.
Margin from borders 10px
LEFT_TOP_CORNERLeft top.
Margin from borders 10px
LEFT_DOWN_CORNERLeft down.
Margin from borders 10px
MIDDLE_CENTERMiddle.
EVERYWHERE newDuplicating a watermark across the image.

About

Add watermark to image

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages