Jump to content

[Solved] Images in product list are blurry ?


Recommended Posts

Hi guys !

 

Wondering if someone can help? I am using PS 1.5 and theme LEO TSHIRT. But have problems with the image quality - they are displaying but are low quality / blurry. The image quality is set to 100 for JPG and 0 for PNG, so i know it is not that. I have read other post and think it may have something to do with the image sizes??

 

Would appreciate some help ASAP as this is a live store and does not look very good for the reputation of my successful company, i did not have this issue with PS 1.4.

 

Here is a link the a product list: http://www.yourplayt....co.uk/50-books

Edited by yourplaything (see edit history)
Link to comment
Share on other sites

Your problem is that you are displaying image 220 x 220 when the actual image is 130 x 130 (home_default) so you are stretching the image and that why its look blurry.

 

Real quick solution (not sure if its the best, but ....) is to edit " themes/leo_tshirt/product-list.tpl " and change line 42 from:

 

<img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" {if isset($homeSize)} width="{$homeSize.width}" height="{$homeSize.height}"{/if} />

 

TO:

 

<img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'large_default')}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" {if isset($homeSize)} width="{$homeSize.width}" height="{$homeSize.height}"{/if} />

 

 

what you will do in this case is load a larger image and than shrink it instead of stretching it.

 

don't forget to clear your browser cache to see changes.

 

Let me know if it works.

Link to comment
Share on other sites

Thanks for that. However i have managed to solve this but simply checking my 'product-list.css' and find what image size it was requesting. And then change my image size in preferences>images 220px x 330px and then regenerated the 'home_default' images.

 

Looking at your solution it should of worked too i just managed to sort this out before reading your reply, thank you for taking the time to reply! :-)

Link to comment
Share on other sites

×
×
  • Create New...