Issue with resizing the image in product view page (media.phtml) magento -
i trying resize image in product view page, after image has resized, white spaces come along in left , right both sides (width), in resize function gave value 338,474, comes white spaces. applied function keepframe(false)
.
but after applying that, image height remains same, width changes 271. should do? below code.
<img src="<?php echo $this->helper('catalog/image')->init($product, 'image')->keepframe(false)->resize(338,474);?>" alt='' title="<?php echo $this->htmlescape($this->getimagelabel());?>" />
i tried keepframe(false)
both before , after resize(338,474)
. please, if body can me.
simply pass height , width in following function resize
$_img = '<img src="'.$this->helper('catalog/image')->init($_product, 'image')->resize(338, 474).'" alt="'.$this->htmlescape($this->getimagelabel()).'" title="'.$this->htmlescape($this->getimagelabel()).'" />';
Comments
Post a Comment