Two days ago I ran into the same problem. Here is what I did to make it work:
"which convert". ImageMagick, , /usr/bin/convert,
Paperclip.options[:command_path] = "/usr/bin"
//development.rb. / , .
file_contents.rb paperclip_postprocess.rb : RAILS_ROOT/config/initializers/paperclip_postprocess.rb
, , :
before_post_process :before_post_process
after_post_process :after_post_process
def before_post_process
puts "===========Before processing attachment==========="
end
def after_post_process
puts "-----------After processign attachment------------"
end
.