has_attachment :content_type => :image,
:storage => :s3,
:path_prefix => '/your_directory/',
:max_size => 500.kilobytes,
:resize_to => '400>',
:thumbnails => {
:regular_resize => '60',
:cropped => '50x50!' }
Now, the next step is to modify rmagick_processor.rb in the processors directory of attachment_fu. Just replace your resize_image method with the one below and you should be good to go.
# Performs the actual resizing operation for a thumbnail
def resize_image(img, size)
size = size.first if size.is_a?(Array) && size.length == 1 && !size.first.is_a?(Fixnum)
if size.is_a?(Fixnum) || (size.is_a?(Array) && size.first.is_a?(Fixnum))
size = [size, size] if size.is_a?(Fixnum)
img.crop_resized!(*size)
else
img.change_geometry(size.to_s) { |cols, rows, image| image.crop_resized!(cols, rows) }
end
self.temp_path = write_to_temp_file(img.to_blob)
end


