Increase product image quality

Magento by default compress and reduce the quality of uploaded product images. This tips show you how to increase the product image quality.

To adjust this setting open up app/code/core/Mage/Media/Model/File/Image.php and go to around line #168. There, modify the number 80 in line $result = imagejpeg($object->getTmpImage(), $object->getFilePath(true), 80); to a higher number. Note that this is a core hack and will most likely be overwritten during a full Magento upgrade.

This entry was posted in Tips and tagged . Bookmark the permalink.

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">