Best way to auto-resize uploaded images...

11 views
Skip to first unread message

ECP

unread,
Jul 5, 2011, 2:40:50 AM7/5/11
to Ruby on Rails: Talk
Hi,

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).

Thanks,

Emeka

Mihai Lazar

unread,
Jul 5, 2011, 3:18:08 AM7/5/11
to rubyonra...@googlegroups.com
I think you could check out what Spree does with ImageMagik. https://github.com/spree/spree
Reply all
Reply to author
Forward
0 new messages