Magento Store - Crop Images

I have finished designing a store in Magento, but I need some PHP script to crop the images when I upload them into my store

Basically we have lots of images of different shapes and sizes, some portrait, some landscape, but very few that are square! So I need to crop the images based on the shortest dimension.

To clarify, my main images in my magento store are 210 x 210, so for a portrait image, it needs to be resized on the width to 210 and then crop equally on the top and bottom of the image to get the other 210 dimension and in landscape images, resized to 210 on the height and the cropped equally to the left and right of the image to get the other 210 dimension.

I know that this is possible with code and therefore an automatic process whenever a product is created, does someone know how to do this?

I am using Magento version and you can see the site as it is at the moment by going to [url removed, login to view]

, you can also see some examples of images with white bars where they have not been cropped

Compétences : e-Commerce, HTML, Magento, PHP, Paniers d'Achat

en voir plus : magento crop image, crop image magento, crop magento, magento image crop, magento crop images, magento upload crop, magento crop, magento product image crop, magento crop image square, script crop php, magento crop image upload, magento shop crop, magento portrait product images, php code crop image magento, landscape images magento, magento upload crop images, magento shop store, designing my product, 48 images, upload crop image magento, magento crop script, magento crop square top, can crop square image magento, crop images magento, crop image bottom magento

Concernant l'employeur :
( 3 commentaires ) REIGATE, United Kingdom

Nº du projet : #1081648

Décerné à:


Thank you Alex.

%selectedBids___i_sum_sub_4% %project_currencyDetails_sign_sub_5% GBP en 1 jour
(282 Commentaires)

9 freelance font une offre moyenne de £137 pour ce travail


Please check my PMB

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% GBP en 3 jours
(69 Commentaires)

Dear Sir, Greetings, Please check Your PMB. Thank You, Muatafa

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% GBP en 2 jours
(45 Commentaires)

Please check PMB

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% GBP en 7 jours
(11 Commentaires)

Hi, I can help you out. Please check P.M.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% GBP en 2 jours
(11 Commentaires)

STOP !!! STOP LOOKING AT ANYMORE BIDS !!! Sir,your search really ends here. Get your work done right and as it is you are expecting. check our private message then decide yourself. Thanks

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% GBP en 7 jours
(18 Commentaires)

Please check your pm! Thanks.

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% GBP en 1 jour
(6 Commentaires)

Let's start

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% GBP en 1 jour
(1 Évaluation)

Please see my PM

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% GBP en 3 jours
(0 Commentaires)