<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -45,6 +45,13 @@ module Technoweenie # :nodoc:
           elsif size.is_a?(String) &amp;&amp; size =~ /^c.*$/ # Image cropping - example geometry string: c75x75
             dimensions = size[1..size.size].split(&quot;x&quot;)
             img.crop_resized!(dimensions[0].to_i, dimensions[1].to_i)
+          elsif size.is_a?(String) &amp;&amp; size =~ /^r.*$/ # Image round-cropping - example geometry string: r120x60
+            dimensions = size[1..size.size].split(&quot;x&quot;)
+            if img.columns &gt; img.rows
+              img.crop_resized!(dimensions[0].to_i, dimensions[1].to_i)
+            else
+              img.crop_resized!(dimensions[1].to_i, dimensions[0].to_i)
+            end
           else
             img.change_geometry(size.to_s) { |cols, rows, image| image.resize!(cols&lt;1 ? 1 : cols, rows&lt;1 ? 1 : rows) }
           end</diff>
      <filename>lib/technoweenie/attachment_fu/processors/rmagick_processor.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>4d61057db9a2a627ea17bbce73b1eb860a705865</id>
    </parent>
  </parents>
  <author>
    <name>Isaac Feliu</name>
    <email>isaac@vesne.com</email>
  </author>
  <url>http://github.com/isaacfeliu/attachment_fu/commit/c12fa3daf680e616615ce812ccb6fb69edd8331f</url>
  <id>c12fa3daf680e616615ce812ccb6fb69edd8331f</id>
  <committed-date>2009-03-27T09:33:52-07:00</committed-date>
  <authored-date>2009-03-27T09:33:52-07:00</authored-date>
  <message>Support for round-crop on imagemagick</message>
  <tree>0f9a6b5fce961d119fc6824c6ed9f105fc3a0780</tree>
  <committer>
    <name>Isaac Feliu</name>
    <email>isaac@vesne.com</email>
  </committer>
</commit>
