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? 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. 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
Archived
This topic is now archived and is closed to further replies.