Howto downsize product images in Magento using Mage_Catalog_Helper_Image

or

“How can I downsize large product images but not enlarge small images?”

simple as:

syntax:

$this->helper('catalog/image')
->init($_product, 'image')
->keepFrame(false)
->constrainOnly(true)
->resize(650);

example:

$this->helper('catalog/image')
->init($_product, 'image')
->keepFrame(false)
->constrainOnly(true)
->resize(650);

Read the rest of this entry »

May 13th, 2009 / Tech Talk / tim