I'm looking for a solution to resize uploaded images while maintaining a desired aspect ratio instead of cropping them.
We can configure some preset Image styles, but it seems we can only :
Resize : Will force an exact set of width/height dimensions which can cause images to be stretched or shrunk disproportionately and loose.
Scale and crop : will maintain the original aspect-ratio of the uploaded image, which can be different from the desired aspect ratio.
So is there a way to force a certain aspect ratio to uploaded images, by adding a white background for instance ?