views:

30

answers:

1

I can do this command to resize an image to fit a specific size on the command line with Imagemagick. How do I tell paperclip can do the same when I upload an image:

convert Bisiye2.jpg -thumbnail '150x150^' -gravity center -extent 150x150 Bisiye2_tofit.jpg

A: 
  has_attached_file :image, :styles => { :thumb => "150x150>" }, 
    :convert_options => {:thumb => "-gravity center -extent 150x150"}
Voyta