pdf thumbnail imagemagick php not working -


i using imagemagick , ghostscript in windows pc running php5 in apache.

i tried

<?php $im = new imagick('test.pdf[0]'); $im->setimageformat( "jpg" ); header( "content-type: image/jpeg" ); echo $im; ?> 

and found not working.

my php info file shows imagick working...

enter image description here

i trying generate thumbnail without saving in server hard drive...

you're outputting imagick object, not image you're dealing with. output .jpg, you'd need do

echo $im->getimageblob(); 

Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -