PHP code example of thanhansoft / fdola-watermark-imagick
1. Go to this page and download the library: Download thanhansoft/fdola-watermark-imagick 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/ */
thanhansoft / fdola-watermark-imagick example snippets
bash
use Fdola\WatermarkImagick;
$model = new WatermarkImagick();
//$model->image(__DIR__.'/test.jpg', __DIR__.'/result.jpg', __DIR__.'/logo.png', 'center', 10, false, 1);
$model->text(__DIR__.'/test.jpg', __DIR__.'/result.jpg', 'Thanhansoft.com', 'bottom-right');