Best way to auto-resize uploaded images...


Non-dev here seeking community input on / recommendation for an issue.
Working on a style Q&A site with some image uploading and looking for
a recommended approach to auto-centering, orienting and resizing when
dealing with pictures with widely varying dimensions. I've heard
several different opinions and most have said that I'm going to end up
with something either cropped, stretched, or possibly zoomed into the
wrong area. I don't mind if some distortion occurs as clicking on the
thumbnail will eventually take a user to larger thumbnail whereupon
they can click to see a full size image, but I'm wondering if there's
any ideas for how to go about this to get the highest quality, best
looking thumbnail(s) possible (in all instances).



I think you could check out what Spree does with ImageMagik.