Resize an image with Paperclip Resize an image with Paperclip ruby-on-rails ruby-on-rails

Resize an image with Paperclip


You can use "160x160#" which will scale and crop to exactly that size, which is unique to paperclip. Otherwise you can use any of the ImageMagick geometry strings, detailed here:

ImageMagick Geometry

But I'll quote the one you're interested in:

"160x160!"

Width and height emphatically given, original aspect ratio ignored.