Adding Class To Existing Module - Water mark on image upload

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
JohnnyB
Dev Team Member
Dev Team Member
Posts: 731
Joined: Tue Nov 21, 2006 5:05 pm

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

Post 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.
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
Post Reply

Return to “The Lounge”