I have ghostscript and imagemagick installed in my C drive and i have my wamp server in D drive in which one file has code
<?php exec('convert "sd.pdf[0]" -colorspace RGB -geometry 200 "document.png"');
?>
The file sd.pdf exists in the folder in which my program is.This program is giving no error but also its not making a image in that folder.Why?
Additional Question:-Is using Imagemagick and ghostscript in php makes the program slower or faster?
You need to remove or escape double quotes, it is not working correctly on Windows.
Take a look at my execute() method for more: https://github.com/webarto/instagraph/blob/master/instagraph.php#L55
Chat with one of IM biggest contributors…