[[+content_image]]
D
D
Dmitry Grabko2018-07-25 17:23:41
MODX
Dmitry Grabko, 2018-07-25 17:23:41

How to add watermark to original image in SimpleGallery?

I add a photo gallery, but the watermark is set only on the thumbnail. How to add a watermark to [+sg_image+]?
I use this code:

[[sgLister? 
&thumbSnippet=`phpthumb`
&thumbOptions=`w=300&h=220&zc=1&fltr=wmi|/template/img/logo.png|B|50`
&tpl=`@CODE:
<a href="[+sg_image+]" data-fancybox="gallery" class="page-gallery-item">
    <img src="[+thumb.sg_image+]" class="img-thumbnail" alt="[+e.sg_title+]" title="[+e.sg_description+]">
    <span>[*pagetitle*] [+sg_index+]</span>
</a>`
]]

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question