Resize an image with Paperclip

You can use “160×160#” 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.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)