See ticket #2178 for more information.
In the controller:
class Photo < ApplicationController imagemagick_for "/var/lib/photos" end
And in the view:
<%= imagemagick_tag "presentation.jpg" %> |
|
<%= imagemagick_tag "presentation.jpg", "resize(100)" %> |
|
<%= imagemagick_tag "presentation.jpg", "resize(100)+flop" %> |
|
<%= imagemagick_tag "presentation.jpg", "part(100x75)" %> |
|
<%= imagemagick_tag "presentation.jpg", "border(1,1,f00)+rotate(10)" %> |