As it is known, Seditio has the feature of adding logos to images.
When adding a logo, features such as Bottom left, Bottom right, Top left and Top right are available.
With the modification we will make now, we will add the feature of adding watermark in the middle of the image.
First of all, we find the one below in functions.admin.php.
$result[] = array ('gallery', '21', 'gallery_logopos', 2, 'Bottom left', array('Top left','Top right','Bottom left','Bottom right'));
We replace it with the one below.
$result[] = array ('gallery', '21', 'gallery_logopos', 2, 'Bottom left', array('Top left','Top right','Bottom left','Bottom right','Center'));
Then we open the functions.image.php file and find the one below.
case 'Bottom right':
$img2_x = $img1_w - 8 - $img2_w;
$img2_y = $img1_h - 8 - $img2_h;
break;
We Add Below.
case 'Center':
$img2_x = ($img1_w - $img2_w) / 2;
$img2_y = ($img1_h - $img2_h) / 2;
break;
The process is complete, now you can add a watermark in the middle of the images.
To adjust the settings, you need to go to: admin/config?n=edit&o=core&p=gallery.
This application is made for Seditio 178 and above versions.