Quote:
Originally Posted by netcommander
can we change watermark position ? is it possible
|
well, it's not hard with a little coding PHP coding knowledge.
Try to modify these lines in plugin "Watermark Attachments - Display":
PHP Code:
if($wm_t&&imagesx($im_a)>imagesx($wm_t)) {
imagefilledrectangle($im_a, 0 , 0 , imagesx($im_a) , imagesy($wm_t) , imagecolorallocatealpha($im_a, 0, 0, 0, 100) );
imagecopy($im_a, $wm_t, imagesx($im_a)-imagesx($wm_t), 0, 0, 0, imagesx($wm_t), imagesy($wm_t));
}
if($wm_b&&imagesx($im_a)>imagesx($wm_b)) {
imagefilledrectangle($im_a, 0 , imagesy($im_a)-imagesy($wm_b) , imagesx($im_a) , imagesy($im_a) , imagecolorallocatealpha($im_a, 0, 0, 0, 100) );
imagecopy($im_a, $wm_b, imagesx($im_a)-imagesx($wm_b), imagesy($im_a)-imagesy($wm_b), 0, 0, imagesx($wm_b), imagesy($wm_b));
}