Increase Image Quality on Magento

Home / Magento / Increase Image Quality on Magento

Magento accordingly layers the picture throughout the transfer process to have thumbnail pictures and essential pictures show faster for your clients. Magento expects that you favor speed over picture quality and lessens the span of your picture.

The point when picture quality is not strictly outlined for certain sorts of pictures, Magento framework takes the first ever worth, and for some it figures its own particular. All we need to do is to situated the picture quality to the most astounding quality. This could be finished assuming that you open a record:


Discover a strategy __tostring() and simply before attempt condition before all else of the system, embed the accompanying scrap of code:


provided that you need to enhance the nature of item pictures in category see steer in phtml document then,

open app/design/frontend/default/yourtheme/template/catalog/product/list.phtml and include->setquality(100) into the final moments of img src like underneath:

<img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(122,180)->setQuality(100); ?>" alt="" />

Attempt a different path to expand the item picture quality

Assuming that you wish to build the item picture quality, you can do so by altering your center Mage indexes by means of Ftp.

To alter this setting open up app/code/core/mage/media/model/file/image.php and head off to approx. line #174. The line will resemble this:

$result = imagejpeg($object->gettmpimage(), $object->getfilepath(true), 80);

Change the number at the closure of the line to a higher setting.

$result = imagejpeg($object->gettmpimage(), $object->getfilepath(true), 100);


Keep in mind to exhaust the reserve of pictures by means of System> Cache Management.

Additionally need to do is head off to Cache Management area and click “Flush Image Cache” catch.

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *