title: Paperclip Resize and Crop
body: <p>I am using Paperclip with Rails4. I have the following image</p>
  
  <p><img src="https://i.stack.imgur.com/7DCdR.jpg" alt="enter image description here"></p>
  
  <p>Now i want to resize and Crop the image but its getting cropped and orientation of the image is getting displaced like below</p>
  
  <p><img src="https://i.stack.imgur.com/WSEEX.jpg" alt="enter image description here"></p>
  
  <pre><code>:photo,
      :path =&gt; ":rails_root/public/system/:attachment/:id/:style/:filename",
      :url =&gt; "/system/:attachment/:id/:style/:filename",
      :styles =&gt; {
          :small =&gt; { :geometry =&gt; "100x100!" },
          :medium =&gt; { :geometry =&gt; "500x500!"}
  }
  </code></pre>