Although the images are in very good quality in the product view, in the list view have very poor quality and blurry How can I fix that?
2 Answers
well its a still debatable point for me as well I would not able to find proper solution for that.
But let me give you some suggestion for this
put below code in your img
tag src
and check if it helps you
<?php echo $this->helper('catalog/image')->init($_product, 'small_image')
->keepAspectRatio(true)
->keepFrame(true)
->keepTransparency(true)
->backgroundColor(array(255,255,255))
->resize($_imgSize)->setQuality(99); ?>
-
1
keepAspectRatio
&keepTransparency
aretrue
by default,keepFrame
may be relevant here, andbackgroundColor
is only applicable if transparent PNG/GIFs are used. FYI. github.com/OpenMage/magento-mirror/blob/magento-1.9/app/code/… line 203,236.– B00MERCommented Mar 9, 2017 at 15:15 -
Someone else seems to have experienced similar issues with 1.9.2:
There is a setQuality
method in the Image helper you can try to bump to see if it helps. The alternative is to modify the GD2 library code OR give ImageMagick a try instead of GD2 as the filter quality is known to be a bit better.