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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.