Page 1 of 1

Re: Adding Class To Existing Module - Water mark on image up

Posted: Thu Jan 09, 2014 9:15 pm
by JohnnyB
Use the module CGSmartImage from the Development forge. Or install via your module manager.

Then, you can set a watermark option by sending all images from the gallery to a CGSmartImage tag inside of your Gallery template.

So, something like this as an example:

Code: Select all

{CGSmartImage src=$image->file|escape:'url'|replace:'%2F':'/' alt=$image->title filter_resizetofit='1024,768,#000000' silent=1 noresponsive=1 noembed=1 filter_watermark='Your Watermark Here'}
Now, when viewing the gallery on the frontend, images will be parsed through cgsimpleimage and contain the watermark.