Home » Magento tutorials » Set quality of magento product images

Set quality of magento product images

You want to reduce quality of some product images for different purposes, like improve site’s performance, improve user’s experience… So. have you ever questioned how to set quality of magento catalog product images directly in template files?

There is no need to duplicate and edit core files or adapters. New method called setQuality has been implemented since Magento CE 1.4 and can be used directly in template files. For example if you want to improve the quality of product images in category view, open app/design/frontend/yourpackage/yourtheme/template/catalog/product/list.phtml and add ->setQuality(100) in the end of img src as follows:

Now we have good quality images in the product list.

Don’t forget to empty the cache of images via System> Cache Management.

 

About Gareth

avatar
Gareth is an editor at Tutorial Magento. His special hobby is to share magento knowledge and experience with everyone.

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 class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

Scroll To Top