Magento Forum

   
Stop Stretch for Smaller Images [SOLVED]
 
Loxam
Member
 
Total Posts:  60
Joined:  2008-03-17
 

Hello smile

Trying to get my Magento store up and running and I am having problems with the image scaling for products.  When you go into the product its fine with the zoom functions, however when you go back and look at the thumbnail version it has been stretched to fit the box.

The original image is not a square, so magento seems to take it and when making a thumbnail of it stretch it to fit that square for the smaller images.

I really don’t want to go through each image converting them by hand to thumbnails - is there a quick fix edit to the code to allow it to only stretch 1 way or not stretch the image at all?

I have attached the squashed image as magento does to it and the original image.

Image Attachments
111.jpg111-1.jpg
 
Magento Community Magento Community
Magento Community
Magento Community
 
Loxam
Member
 
Total Posts:  60
Joined:  2008-03-17
 

Anyone have any idea?

Still stuck!

 
Magento Community Magento Community
Magento Community
Magento Community
 
Loxam
Member
 
Total Posts:  60
Joined:  2008-03-17
 

There must be someone out there that can help a designer like me (who is useless at coding smile)

 
Magento Community Magento Community
Magento Community
Magento Community
 
Loxam
Member
 
Total Posts:  60
Joined:  2008-03-17
 

Been reading up on Magento’s features and the Media Manager that handles the stretching just says “automatic scaling” of images.

Is it possible to turn this function off?

 
Magento Community Magento Community
Magento Community
Magento Community
 
dan_w
Sr. Member
 
Total Posts:  290
Joined:  2008-01-04
 

Check out this post:
http://www.magentocommerce.com/boards/viewthread/5502/

Particularly the post by ryu007. He has a fix for the default gd function that will scale you images to proper proportions without distorting.

Dan

 
Magento Community Magento Community
Magento Community
Magento Community
 
sherrie
Moderator
 
Avatar
Total Posts:  1655
Joined:  2007-12-14
Waterloo, ON
 

There’s also been an extension posted in Magento Connect for this.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Loxam
Member
 
Total Posts:  60
Joined:  2008-03-17
 

Thanks so much, solved this perfectly!

ryu is a god rasberry

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