title: Imagemagick crop not working
body: <p>I was trying to perform a crop on a image using imagemagick. It did not give the results I expected.
  I decided to set the crop value to 0 to try and find the error.
  With a crop value of 0 the image was still being cropped.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>$img = new Imagick();
  $img-&gt;readImage("{german-grammar.pdf}[17]");
  $img-&gt;trimImage(10);
  $width = $img-&gt;getImageWidth();
  $height= $img-&gt;getImageHeight();
  $img-&gt;setImagePage($width,$height, 0, 0); //Solution
  $img-&gt;cropImage($width, $height,0,0); //Original Problem lime
  $img-&gt;setImagePage(0,0,0,0);
  $img-&gt;writeImage($ImagesPath.$ImageName);
  </code></pre>
  
  <p>The input is a PDF file.</p>
  
  <p>I would appreciate if anyone could tell me what I am doing wrong.
  Surely a crop value of 0 should not crop at all.</p>
  
  <p>Thanks!</p>
  
  <p>Cymro</p>