Showing posts with label Remove white space into resize images magento. Show all posts
Showing posts with label Remove white space into resize images magento. Show all posts

Wednesday, 6 August 2014

How to remove white space from image in magento


How to remove white space from image in magento

add the keepFrame(false) method in your Image tag like this :

<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize(900,1200); ?>

Replace To :

<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize(900,1200)->keepFrame(FALSE); ?>