title: Fatal error: Uncaught exception 'ImagickException' with message 'NoDecodeDelegateForThisImageFormat
body: <p>I'm unable to make imagick works with local xampp. </p>
  
  <h1>Error</h1>
  
  <p><code>Fatal error: Uncaught exception 'ImagickException' with message 'NoDecodeDelegateForThisImageFormat</code></p>
  
  <h1>Code</h1>
  
  <pre><code>$im = new imagick();
  $im-&gt;setResolution(300, 300);
  $im-&gt;readimage($base_dir . 'files/PDF/test.pdf');
  $im-&gt;setIteratorIndex($i);
  $im-&gt;setImageFormat('jpeg');
  $newimgname = time();
  $im-&gt;resizeImage(500, 500, Imagick::FILTER_LANCZOS, 1);
  $im-&gt;cropImage(100, 100, 0, 0);
  $thumbnail = $im-&gt;getImageBlob();
  </code></pre>