I am using Imagick for converting pdf to jpg. In command prompt it is working but when it came to php it is not working.I installed Image Magick and GhostScript also.Thanks
Php Code:-
<?php
$im=new Imagick();
$im->readImage("C:\wamp\www\pdfNew\demo.jpg");
?>
I am getting error.
Fatal error: Uncaught exception 'ImagickException' with message 'unable to open image `C:\wamp\www\pdfNew\demo.jpg': No such file or directory @ error/blob.c/OpenBlob/2642' in C:\wamp\www\pdfNew\index.php on line 3
I am can't able to convert jpg to png also.Thanks
Imagick for windows
Re: Imagick for windows
I believe your image must be in your localhost folder. Try putting the pdf file in the same folder as your imagick code first and see what happens.