Jump to content

Help with ImageMagick on GoDaddy server


AndrewJ1313

Recommended Posts

Okay, according to GoDaddy, ImageMagick is installed and available on their servers and that the convert path for ImageMagick 5 is located at /usr/bin/ and for version 6 is at /usr/local/bin/...I'll be honest with you, I'm not even really sure what this means as I am a complete newbie to ImageMagick, all I'm trying to do is convert a PDF to a JPG on the fly for clients to review changes they have made to a document. Piecing together other code I have seen in other forums and after hours of Google searches, I am trying to use this:

 

$originalImage = 'image.pdf';
$newImage = 'image.jpg';
$path = "/usr/local/bin/";

exec($path . "convert $originalImage $newImage") or die("not gonna do it");

 

All I get is "not gonna do it".

 

I have beaten my head against the wall for several days now trying different things and I just don't have a clue what to do. Can anyone offer any suggestions that don't involve a link to ImageMagick.net as the web site only talks about using ImageMagick from the command line and I need to make this work with PHP on a web site.

 

Much thanks to anyone with a suggestion.

 

Thanks,

Andrew

Link to comment
https://forums.phpfreaks.com/topic/193365-help-with-imagemagick-on-godaddy-server/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.