Re: Re: [equinox69] Comments & Suggestions Wanted Please

3 posts by 2 authors in: Forums > CMS Builder
Last Post: August 18, 2022   (RSS)

By Djulia - August 12, 2022

In response to: https://www.interactivetools.com/forum/forum-posts.php?postNum=2205571#post2205571

// You can add multiple watermarking rules to apply different images to different upload fields. Only the first rule which matches a field will be applied.

watermark_addRule(array(
'tables' => '', # Comma-separated list of table names to be watermarked. To apply this rule to all tables, leave blank or comment out this line.
'fields' => '', # Comma-separated list of upload field names to be watermarked. To apply this rule to all upload fields, leave blank or comment out this line.
'image' => 'images/logo.png', # url or filepath to watermarking image
'alpha' => 1, # Translucency: 1 = opaque, 0.5 = half-transparent
'hAlign' => 'right', # Horizontal Alignment: left, center, right
'vAlign' => 'bottom', # Vertical Alignment: top, middle, bottom
'hMargin' => 5, # Horizontal Margin: pixels left between left/right edge of image and watermark (n/a when hAlign=center)
'vMargin' => 5, # Vertical Margin: pixels left between top/bottom edge of image and watermark (n/a when vAlign=middle)
));

Hi,

Has this plugin been released? I can't seem to find it in the plugins page.

Thanks,
Djulia

By Djulia - August 18, 2022 - edited: August 18, 2022

Hi Daniel,

The plugin works well and does what i need.
I only added support for WEBP.

Thanks again,
Djulia

Attachments:

watermark.php 10K