Imagick for windows

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
dharsha
Posts: 1
Joined: 2015-02-04T04:37:55-07:00
Authentication code: 6789

Imagick for windows

Post by dharsha »

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
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Imagick for windows

Post by Bonzo »

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.
Post Reply