How to Reduce Magento Resize Product Image Size?

<?php
$_helper = $this->helper('catalog/output');
$productId = $this->getProduct_id();
$_product = Mage::getModel('catalog/product')->load($productId);  //load the product
$_img = '<a id="a_image" href="'.$_product->getProductUrl().'" title="">
<img id="image".src="'.$this->helper('catalog/image')->
init($_product, 'image')->constrainOnly(TRUE)->
keepAspectRatio(TRUE)->resize(176,251).'" alt="'.$this->
htmlEscape($this->getImageLabel()).'" title="'.
$this->htmlEscape($this->getImageLabel()).'"/></a>';
echo $_helper->productAttribute($_product, $_img, 'image');
?>

Comments are closed.

© 2020 Spirituality