2

I would like to protect my images with the watermark. I know there is the functionality in Magento for the watermark. My web site has functionality where visitors are able to click on base image and then load larger size of that image (lightbox), and that is the image that I want to protect. When I use Thumbnail Watermark in Magento, all images are watermarked, which is not what I would like to accomplished.

1 Answer 1

0

This is not possible out-of-the-box.

You can see in \Mage_Catalog_Helper_Image::init how the watermarks work. So what you need to do is call the methods at the place where you want the watermark.

Something like:

$this->helper('catalog/image')
->init($_product, 'small_image')->resize(135)
->setWatermark(<expects a path I think>)
->setWatermarkImageOpacity(<0-100>)
->setWatermarkPosition(<Mage_Adminhtml_Model_System_Config_Source_Watermark_Position>)
->setWatermarkSize(WxH);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.