Sometimes the pre-defined watermark positions are not enough and we may need custom positions, such as 25% below the middle center, etc.
I found this method but it seems protected.
Is there any way to programmatically set the position of a watermark? Such as by position of pixels from the top left of the image? For now I can set size and opacity of the watermark programmatically:
$this->helper('catalog/image')->init($_product, 'image') ->constrainOnly(TRUE) ->keepAspectRatio(TRUE) ->keepFrame(FALSE) ->setWatermarkImageOpacity(6) ->setWatermarkSize( iGetWatermarkSize(600) ) ->resize(600, null)
Wherein iGetWatermarkSize() is my in-house function that returns the size string for the watermark according to the width of the subject image.
I think it's sensible to have a method to set the position of a watermark in Magento but found nothing relevant in Google in this regard. Is there such a method or way for me to do this?