title: ImageResizer in Umbraco 7 - Cropping with resizing
body: <p>I'm having an issue cropping an image and then resizing an image using ImageResizer 3.4.3 within an Umbraco site.</p>
  
  <p>What I'm trying to achieve is a square crop that is anchored to the right of the image, and then resized to a specific size.</p>
  
  <p>For example, with this original image:
  <img src="https://i.stack.imgur.com/acqxG.jpg" alt="enter image description here"></p>
  
  <p>I'm trying to get an output looking like the highlighted section of this image:
  <img src="https://i.stack.imgur.com/LGNzZ.jpg" alt="enter image description here"></p>
  
  <p>From my understanding of the ImageResizer documentation, I should be able to do this in two ways - either using:</p>
  
  <ul>
  <li>?crop=(500,0,0,0)&amp;width=150 or</li>
  <li>?width=150&amp;height=150&amp;mode=crop&amp;anchor=topright </li>
  </ul>
  
  <p>The results don't seem to match what I want though - the first outputs this, applying the resize before the crop:</p>
  
  <p><img src="https://i.stack.imgur.com/4VREJ.jpg" alt="enter image description here"></p>
  
  <p>And the second method outputs this - ignoring the anchor parameter (centering the crop):</p>
  
  <p><img src="https://i.stack.imgur.com/3wHf6.jpg" alt="enter image description here"></p>
  
  <p>The only way I can get it to work is to use percentage cropping - unfortunately this won't be feasible with many of the images i'm working with (variable width):</p>
  
  <p>?crop=(50,0,0,0)&amp;cropxunits=100&amp;cropyunits=100&amp;height=150</p>
  
  <p><img src="https://i.stack.imgur.com/TEZwI.jpg" alt="enter image description here"></p>
  
  <p>Am I missing something? Should it be possible to do this?</p>
  
  <p>Here is the <a href="https://gist.github.com/anonymous/7698dca5b62c394e11d1" rel="nofollow noreferrer">debug output from ImageResizer</a>.</p>