I'm using Paperclip to resize an imported image, and I want the image to be a minimum of 465x465, so I've set the following style in my model:
has_attached_file :image, :styles => { :cropped => ["465x465^", :jpg]}
As I understood the ImageMagick documentation, and various other questions and answers on Stack Overflow, the caret(^) should mean that if the image width or height is smaller than those minimum dimensions, it's resized to meet them and also maintain aspect ratio.
The trouble I'm having is that I'm importing images that exceed both the width and height, in which case I'd expect ImageMagick to leave it alone, but it's resizing the smaller dimension (width if it's a portrait image, height if it's landscape) to 465px - does anyone know why that might be?