ImageMagick for Rails

See ticket #2178 for more information.

In the controller:

class Photo < ApplicationController
  imagemagick_for "/var/lib/photos"
end

And in the view:

Presentation <%= imagemagick_tag "presentation.jpg" %>
Presentation <%= imagemagick_tag "presentation.jpg", "resize(100)" %>
Presentation <%= imagemagick_tag "presentation.jpg", "resize(100)+flop" %>
Presentation <%= imagemagick_tag "presentation.jpg", "part(100x75)" %>
Presentation <%= imagemagick_tag "presentation.jpg", "border(1,1,f00)+rotate(10)" %>