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

Automatic Image Padding
 
double02
Jr. Member
 
Avatar
Total Posts:  28
Joined:  2007-12-08
Los Angeles, CA
 

I am looking into trying to get magento to pad images that are not square with a solid color to make them square. Has anybody looked into this or done this?

 
Magento Community Magento Community
Magento Community
Magento Community
 
nabuhonodozor
Member
 
Avatar
Total Posts:  51
Joined:  2008-03-27
 

Hi,
I am using irfanview to add stripes to both sides and it works great. Lastly Ive batched 1500 pictures and it takes minute or two.

 
Magento Community Magento Community
Magento Community
Magento Community
 
double02
Jr. Member
 
Avatar
Total Posts:  28
Joined:  2007-12-08
Los Angeles, CA
 

Hmm.

I was hoping to get magento to do it after uploading but until i can get that working this could do the trick. Thanks

I think I found the resize function in /public_html/app/code/core/Mage/Media/Model/File/image.php, I am going to start looking at this today and hopefully I can figure something out.

 
Magento Community Magento Community
Magento Community
Magento Community
 
double02
Jr. Member
 
Avatar
Total Posts:  28
Joined:  2007-12-08
Los Angeles, CA
 

This did the trick

http://www.magentocommerce.com/boards/viewthread/5502/

my bad.

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