title: How to scale and crop an image with php-imagick?
body: <p>I use <a href="http://guillotine.js.org/" rel="nofollow">jQuery Guillotine</a> to position a preloaded image. Guillotine returns an array similar to this one:</p>
  
  <pre><code>array (
      'scale' =&gt; '0.13186813186813187',
      'angle' =&gt; '0',
      'x' =&gt; '45',
      'y' =&gt; '0',
      'w' =&gt; '180',
      'h' =&gt; '180'
  )
  </code></pre>
  
  <p>Now I can crop the image like this:</p>
  
  <pre><code>$url = 'https://s.yimg.com/uy/build/images/sohp/inspiration/love-rock3.jpg';
  
  $image = new Imagick();
  $image-&gt;readImageFile(fopen($url, 'rb'));
  $image-&gt;cropImage($size['w'], $size['h'], $size['x'], $size['y']);
  
  header("Content-Type: image/jpg");
  echo $image-&gt;getImageBlob();
  </code></pre>
  
  <p>But how to zoom in? I have <code>scale</code> which is the zoom factor I guess. Does Imagick provide a way to pass a zoom factor?</p>