I have model with user-uploaded images which can vary in dimensions. On an index page, there's a space for each image (70px height max and 100px width max).
I want to use Paperclip to resize to these restrictions without losing the aspect ratio.
Scenarios:
A) 140px height, 60px width would resize to 70px height 30px width
B) 40px height and 200px width would resize to 100px width and 20px height
How do I do this with paperclip? I'm assuming this is better practice to optimize the file size rather than controlling a larger image with css.