I'm trying to use theses lines to convert a pdf to a jpg but I got an error
Code: Select all
$img = new imagick($url.'[0]');
$im->setImageColorspace(255);
$im->setCompressionQuality(95);
$im->setImageFormat('jpeg');and then I got this error when I create the object.
Code: Select all
ImagickException: Postscript delegate failed `D:\inetpub\website\sites\default\files\image_2.pdf': No such file or directory @ error/pdf.c/ReadPDFImage/677 in Imagick->__construct()
is it an environment variables problem ? I've got the imagick folder and the bin folder of ghostscript as windows environment variable.
Cheers