mirzahat Posted January 23, 2008 Share Posted January 23, 2008 Hello, I just got a project in php that has to do with ImageMagick. The client gave me only the path: /someDir/someDir/someDir/ImageMagick So, how do I use this now in PHP? I tried: exec("/someDir/someDir/someDir/ImageMagick convert test.jpg test.gif"); but it did not work. So, what is wrong, I just want to convert from one image format to another. Regards, Mirza Quote Link to comment https://forums.phpfreaks.com/topic/87345-how-do-i-get-started-with-imagemagick/ Share on other sites More sharing options...
ziv Posted January 23, 2008 Share Posted January 23, 2008 why imagemagick and not GD? http://www.php.net/gd Quote Link to comment https://forums.phpfreaks.com/topic/87345-how-do-i-get-started-with-imagemagick/#findComment-446746 Share on other sites More sharing options...
mirzahat Posted January 23, 2008 Author Share Posted January 23, 2008 because the task is to convert from pdf and eps file formats to jpg, and I am not sure if thats possible in GD... maybe Im wrong Quote Link to comment https://forums.phpfreaks.com/topic/87345-how-do-i-get-started-with-imagemagick/#findComment-446749 Share on other sites More sharing options...
trq Posted January 23, 2008 Share Posted January 23, 2008 There is also an experimental imagemagick extension. As for the path your client gave you, whats in the ImageMagick directory? There is no such binary as ImageMagick, rather it provides lots of smaller binaries. ie; exec("/someDir/someDir/someDir/ImageMagick/convert test.jpg test.gif"); may actually be what your looking for. Quote Link to comment https://forums.phpfreaks.com/topic/87345-how-do-i-get-started-with-imagemagick/#findComment-446872 Share on other sites More sharing options...
mirzahat Posted January 23, 2008 Author Share Posted January 23, 2008 no, I tried even: exec("/myPath/ImageMagick/bin/convert test.jpg test.gif"); and it dod not work Quote Link to comment https://forums.phpfreaks.com/topic/87345-how-do-i-get-started-with-imagemagick/#findComment-446880 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.