1
Add watermark to all images in a folder - Verot Class
<?php
include ('class.upload.php');
$bg = glob("tempimages/*.*");
foreach ($bg as $file) {
$handle = new \Verot\Upload\Upload($file);
$handle->image_watermark = 'watermark.png';
$handle->image_watermark_position = 'BR';
$handle->file_auto_rename = false;
$handle->file_overwrite = true;
$handle->Process('tempimages');
if($handle->processed) {
//$handle->Clean();
} else {
echo 'error : '.$handle->error;
}
}
?>
Interserver | Standard & VPS Cloud Hosting | $2.50 /Month
Flexible VPS hosting platform to deploy your online projects.
Economical and balanced between processor cores, memory and storage
rated 1 times
(1)
(0)
comments: 0 / hits: 313
/ 1 year ago, wed, mar 2, 22, 02:31:07
More From
» PHP
Comments
There are no comments for this Snippet yet