Link to home
Start Free TrialLog in
Avatar of www_puertoricoautoforo_com
www_puertoricoautoforo_comFlag for United States of America

asked on

Thumbnails in Magento Commerce, variable height?

Vendors don't always have their photos in the same format..

When I upload a photo that's 135px width , but not 135px height, for example lets say it's 135px wide by 110px high, magento will actually fill in the other 25px of vertical space with white.. The actual picture will have a new size of 135px by 135px after the image is imported.

Is this a setting I can change? Is there a downside to messing with this feature?

I wanted to have a nice looking background, but it looks really cheezy when my pictures have filler space.

I'm am importing the pictures via a csv file.

Avatar of CSecurity
CSecurity
Flag of Iran, Islamic Republic of image

You can have a PHP script to use ImageMagik to resize all images to size you want. You can do that as soon as people upload or you can write a PHP script which you can give a PHP directory as a parameter and it will convert all images in that folder to size you need. You need to send these type of questions in PHP section.
https://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/
ASKER CERTIFIED SOLUTION
Avatar of miked2004
miked2004
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial