Ah, I was too slow J Good to see you've got it resolved.
Thanks, Nathan. Interactive Xmas Lights: http://www.pacificlights.co.nz From: [email protected] [mailto:[email protected]] On Behalf Of Aaron Cooper Sent: Friday, 11 December 2009 4:27 p.m. To: [email protected] Subject: Re: [phpug] Running exec() on WAMP Ah champion Stig, The full path to IM's convert app was required. This works: exec('c:/ImageMagick/convert.exe "C:\IMAGES\Holding\*.JPG" -resize 600 "C:\Image\file1.jpg"'); Cheers Aaron ----- Original Message ----- From: Stig Manning <mailto:[email protected]> To: [email protected] Sent: Friday, December 11, 2009 4:10 PM 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]
