2Dec/101

Resize A Magento Product Image

Here is a quick snippet that lets you resize a product image (and in this case, set it's url as a variable) when you are writing code outside the media.phtml file:

$thumbnail_image_url = Mage::helper('catalog/image')->init($product, 'image')->resize(235,235);

About John Webber

John is the founder of MagThemes.com and has been working with Magento since version 0.9
Comments (1) Trackbacks (0)
  1. “Nice post thanks for sharing this.”


Leave a comment


No trackbacks yet.