wintallo Posted March 22, 2008 Share Posted March 22, 2008 Hi, I'm having some trouble with ImageMagick and PHP. I'm not using the extension. What I did was use the command line interface of the ImageMagick package. This is my problem. When I try use php to run command line commands, such as "mkdir testfolder" (I'm on Windows), it works great. But when I put in commands in such as "convert wallpaper.bmp wallpaper.jpg," nothing happens. This is all the different attempts I've made. <?php system("mkdir test"); // This works great! system("convert wallpaper.bmp wallpaper.jpg"); // This doesn't work... exec("convert wallpaper.bmp wallpaper.jpg"); // This doesn't work... shell_exec("convert wallpaper.bmp wallpaper.jpg"); // This doesn't work... escapeshellcmd("convert wallpaper.bmp wallpaper.jpg"); // This doesn't work... `convert wallpaper.bmp wallpaper.jpg` // This doesn't work... ?> What am I doing wrong? Quote Link to comment https://forums.phpfreaks.com/topic/97363-php-and-command-line-imagemagick/ Share on other sites More sharing options...
wintallo Posted March 22, 2008 Author Share Posted March 22, 2008 Okay, nevermind. I just figured my problem out. My firewall was blocking access of cmd.exe to ImageMagick. Quote Link to comment https://forums.phpfreaks.com/topic/97363-php-and-command-line-imagemagick/#findComment-498202 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.