title: Imagemagick Thumbnailing PDF with multiple pages
body: <p>I am currently using Imagemagick and the thumbnailer I have works, but the problem is that when its a multiple page PDF, it thumbnails only the Last page.</p>
  
  <p>Preferably I want it to thubnail the first page only. Can anyone shed any light.</p>
  
  <pre><code>    if(in_array($ext,array('pdf'))){
  
                  $pdf = './uploads/'.$new_file_name;
  
                  $filename=str_replace($ext,'jpg',$new_file_name);
  
                  $img = new imagick($pdf);
  
                  for ($x = 1;$x &lt;= $img-&gt;getNumberImages(); $x++) {      
                      $save_to = './uploads/'.$x.'-'.$filename;
                      $img-&gt;setImageFormat('jpg');
                      $img-&gt;resizeImage(149,211,Imagick::FILTER_LANCZOS,1);
                      $img-&gt;displayImages('img');
                      $img-&gt;writeImage($save_to);
                  }
  </code></pre>