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 126.96.36.199 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
Décerné à :
10 freelance ont fait une offre moyenne de 135 £ pour ce travail
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