AndrewJ1313 Posted March 7, 2010 Share Posted March 7, 2010 All I'm trying to do is get a PDF converted into a JPEG image. I'm using ImageMagick to accomplish this, but it doesn't seem to be working. My web host says the path to ImageMagick is "/usr/bin/" or "/usr/local/bin/". Do I have to provide the absolute path to this or does it matter? I.E. should I use "http://www.domain.com/usr/bin/". Here is the code I am using: $path = "/usr/bin/"; exec($path."convert ../images/test.pdf ../images/new.jpg") or die('not gonna do it'); All I get is "not gonna do it." I have been beating my head against the wall for days and everywhere I look, I find no usefull resources that help me figure out what I'm doing wrong. I'm pretty sure it has something to do with the path I am using, but I don't know what else to do. Can someone please offer some guidance on what I am doing wrong and how to fix it. Much Thanks, Andrew Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.