The command that you're trying to execute, will that vary or is it fixed?
If fixed, then you could try writing a batch file, something like convert_images.bat, and have the PHP call that. That could help resolve the below 'convert' issue. More of a hack than a resolution, but it may work. Thanks, Nathan. Interactive Xmas Lights: http://www.pacificlights.co.nz From: [email protected] [mailto:[email protected]] On Behalf Of Stig Manning Sent: Friday, 11 December 2009 4:10 p.m. To: [email protected] Subject: Re: [phpug] Running exec() on WAMP Hi Aaron, By default the convert command in windows is actually a tool to convert NTFS -> FAT filesystems. You have to do some magic to make imagemagic convert function run, see http://savage.net.au/ImageMagick/html/install-convert.html I have found the registry fix with the 'doskey' command works best. -Stig Aaron Cooper wrote: Howdy all, I'm trying to throw together a small image resizing app that will always run on a local WAMP installation for personal use. (Windows XP Pro). I have just installed ImageMagick on the machine to test image processing using the CLI as I have found that using GD through PHP is a bit slow. I have this simple command: convert "C:\IMAGES\Holding\*.JPG" -resize 600 "C:\Image\file1.jpg" Works fine when run from cmd. But when I try to run it in exec or shell_exec, nothing. Does anyone have any ideas what this would be or know of a way to get some sort of debugging info for what might be going on? Cheers Aaron -- NZ PHP Users Group: http://groups.google.com/group/nzphpug To post, send email to [email protected] To unsubscribe, send email to [email protected]
