I'm trying to write a script in PHP to convert a PDF file to a JPG or other image format so that I can do some stuff with it. I've been looking into using Imagemagick to accomplish this, but I can't for the life of me figure out how to get anything to work.
I have hosting with GoDaddy.com and iPower.com, and both say that it is installed on my server, and they have both given me the path to it, but when I try to write a script to just convert a JPG to a PNG, nothing happens.
Here's what I wrote:
<?php
$path = "/usr/bin/";
exec($path." convert Demo_Ad.jpg demo_ad.png");
?>
When I run that script obviously nothing shows on screen, but if I look in the directory, nothing is there either.
I've tried running "echo exec($path." convert -version");" which didn't give any response either.
Do I have to have MagicWand or IMagick installed on the server to use ImageMagick?
Can someone please turn me on to some real PHP examples that I can run on my server to see if it is installed correctly and working?
Thanks in advance for any and all suggestions or advice!