View Full Version : on-the-fly watermark location
March 14th, 2008, 07:06 PM
Is it possible to have the on-the-fly watermark appear in the centre of the image and not in the bottom right hand corner?
March 14th, 2008, 07:20 PM
Set your watermark in watermark options to center and then in watermark.php delete lines 186-196 as they are overriding the proper code which is above it
$horizextra = $width - $logowidth;
$vertextra = $height - $logoheight;
// here's where you can determine the placement of the watermark
// middle - places the watermark in dead center of the image
//$horizmargin = round($horizextra / 2);
//$vertmargin = round($vertextra / 2);
// lower right corner
$horizmargin = $horizextra;
$vertmargin = $vertextra;
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.