title: Carrierwave: resize image to fixed width and height
body: <p>I have a rails 4 app, where I allow users to upload images. I have validations in place for min dimension of 640X385 and thus a min aspect ratio of 1.6623376623376624. Now that means user can't upload smaller images either in terms of dimension or aspect ratio. And when they upload a bigger image, it gets resized by ImageMagick's resize_to_fit method. But it resizes to a proportional width and height and my dimension's validation fails. If I use resize_to_fill, even the smaller images get stretched and bypass aspect ratio's validation. So How do I get the resize method to resize an image perfectly to 640X385 dimension?</p>