title: Speed up PHP Imagick library PDF -> PNG conversion (20seconds !)
body: <p>I am using <a href="http://www.php.net/manual/fr/book.imagick.php" rel="nofollow">Imagick</a> to convert the first page of a PDF to a PNG image. It is working, but it is very slow.</p>
  
  <p>A conversion takes between 8 and 20 seconds for a ~100kb PDF.</p>
  
  <p>Is there a way to speed up the conversion?</p>
  
  <p>My code : </p>
  
  <pre><code>$im = new Imagick($url);
  $im-&gt;setIteratorIndex(0);
  $im-&gt;setCompression(Imagick::COMPRESSION_LZW);
  $im-&gt;setCompressionQuality(90);
  $im-&gt;setImageFormat("png");
  $im-&gt;writeImage('C:/Shared/test.png');
  </code></pre>