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 Link to comment https://forums.phpfreaks.com/topic/194434-cant-get-imagemagick-to-work/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.