Try the Demo

Magento

eCommerce Software for Online Growth

Magento Forum

Our new hosted solution for small & emerging businesses
   
How can I change the “small” image type from 135 x 135 --> 170 x 170? 
 
JustinZ
Member
 
Total Posts:  36
Joined:  2008-09-17
 

and i don’t mean the HTML attribute, I want to change it so Magento compresses it at 170 px x 170px and stores it in the 170px folder as well

 
Magento Community Magento Community
Magento Community
Magento Community
 
szotyi
Sr. Member
 
Total Posts:  153
Joined:  2008-11-29
 

magento uploads the file with the original size and stores it with the original size..
and then magento resize it on live and creates the images when the page is loading…

if you go to the root of your magento at localdrive, and search for the number (in all files and folders):
135

then you will get some files, but easily you can filter the one you need, called:
app/design/frontend/default/default/template/catalog/product/list.phtml

<img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(135, 135); ?>" width="135" height="135" alt="<?php echo $this->htmlEscape($_product->getName()) ?>" />
replace it to:
<img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(170, 170); ?>" width="170" height="170" alt="<?php echo $this->htmlEscape($_product->getName()) ?>" />
ps.:
you will find two times in the file.. one for the grid view and one for the list view…

 
Magento Community Magento Community
Magento Community
Magento Community
 
JustinZ
Member
 
Total Posts:  36
Joined:  2008-09-17
 

great
thanks!

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
© Copyright 2012 Magento Inc.
Privacy Policy|Terms of Service
Magento Community Count
697453 users|1842 users currently online|496729 forum posts