Magento: Create Watermark Image

It’s very very easy to create watermark image with Magento code. The Varien_Image class does the magic. The function watermark creates watermark on the image. Here is the code: $mainImage = Mage::getBaseDir('media') . DS . 'test' . DS . 'image.jpg'; $watermarkImage = Mage::getBaseDir('media') . DS . 'test' . DS . 'watermark.jpg'; $image = new Varien_Image($mainImage); … Read more