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...
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
Post a Comment