Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Product images aren’t resized in product list
 
Dialoguenet
Jr. Member
 
Total Posts:  20
Joined:  2009-05-13
 

Hi,

After several mount of work we finally put online our first Magento website!

We are happy but we are having some problems, one of them is products images not re-sized!

If you open in a new window for one of the images listed in this page (http://www.vaudoudrums.com/fr/custom-shop-maple.html) you will notify that images are not crop but are at the full large size.

In the backend Base Small & Thumbnail are checked and GD is enabled.

If you have any idea?

Thank you!

 
Magento Community Magento Community
Magento Community
Magento Community
 
Damian Culotta
Enthusiast
 
Total Posts:  878
Joined:  2008-12-10
Argentina
 

Can you check the permissions of the media folder?.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Dialoguenet
Jr. Member
 
Total Posts:  20
Joined:  2009-05-13
 

Hi Damián,

Yes permission are all set at 777 on media directory & all subdirectory.

Thank you!

 
Magento Community Magento Community
Magento Community
Magento Community
 
Damian Culotta
Enthusiast
 
Total Posts:  878
Joined:  2008-12-10
Argentina
 

Sorry, I didn’t understood your message the first time.
It seems that you has different values for the html height (135px) and the magento/php resize. Magento has made the cache of your image, but that cached file has 800x587.
Can you post the code of the category where you put that images?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Dialoguenet
Jr. Member
 
Total Posts:  20
Joined:  2009-05-13
 

Sorry it’s my time to not understood. What do you mean by :

Can you post the code of the category where you put that images?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Damian Culotta
Enthusiast
 
Total Posts:  878
Joined:  2008-12-10
Argentina
 

Let’s see my question thinking on the dafult/dafult skin.
Take a look at the file:

/app/design/frontend/default/default/template/catalog/product/list.phtml

On grid mode, check line 50. You will see something like this:

<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_product->getSmallImageLabel()) ?>">
    <
img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(135, 135); ?>" width="135" height="135" alt="<?php echo $this->htmlEscape($this->getImageLabel($_product, 'small_image')) ?>" title="<?php echo $this->htmlEscape($this->getImageLabel($_product, 'small_image')) ?>" />
</
a>

Look at your phtml file, into your skin,if the values of method resize are correct.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Dialoguenet
Jr. Member
 
Total Posts:  20
Joined:  2009-05-13
 

Hi Damián,

Thank you for your help it’s now fixed!

The problem was in /product/list.phtml!

Thank you again!

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top