How to increase the quality of Images at category pages in magento
Here is how we can improve/change the quality of images. It is very simple and you can make lower or higher.
*(this only works after magento verion 1.4
1. Open
app/design/frontend/yourpackage/yourtheme/template/catalog/product/list.phtml
2. Search for the following line (you can find by control+F)
<img src=
"<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(122,180) ?>"
alt=
""
/>
3. Add this
->setQuality(100);
after the “resize(122,180)”
so it should be like this
<img src=
"<?php echo
$this->helper('catalog/image')->init($_product,
'small_image')->resize(122,180)->setQuality(100); ?>"
alt=
""
/>
now the quality is set as 100. this is the max so it will give you a very beautiful image.
if you want to decease, simply change 100 to 30 etc whatever number you want it to be.
Hope it helps!
0 comments:
Post a Comment