For a client eCommerce project I am working on all the product images are on white backgrounds, so they blend nicely with the background of the site. Currently I am putting all the images through a fit transform (480px by 480px), so that parts of the image aren't cut off.
The images are of different shapes and sizes and are transformed something like this (the grey area is the actual visible product part of the image)
However, I am trying to achieve something like this, so all the images are 480px by 480px, and the visible content is slap bang in the middle. Anything extra is added as whitespace to make all the images the same dimensions.
Is this something Craft can do and I am just being a dolt?
Update
At the risk of this question being closed as off topic, please note that I am not looking for a CSS/JS related answer for this.
I'm trying to find out if there is a way Craft can process the images for me, perhaps with ImageMagick or something similar to achieve what I am hoping for.