PHP code example of tapakan / watermark
1. Go to this page and download the library: Download tapakan/watermark library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
tapakan / watermark example snippets
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');