Hi Todd, Well, I found GD quite slow using in thru PHP, so I have rightly or wrongly assumed that IM would be the same used the same way.
Using Exec with IM like this is already 277% faster for resizing these images, so I'm happy. Ta and have a good weekend Aaron ----- Original Message ----- From: "Todd Martin" <[email protected]> To: <[email protected]> Sent: Friday, December 11, 2009 5:21 PM Subject: Re: [phpug] Running exec() on WAMP > Hi Aaron > > Why not use the iMagick extension for PHP instead of running a shell > command? > > >>> Hi, >>> >>> >>> On Fri, Dec 11, 2009 at 3:31 PM, Aaron Cooper <[email protected]> >>> 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? >>> >>> convert needs to be executable by the Web user, I'd have to look up >>> what that Windows user is usually called. Thats how much I know it. >>> >>> Admittedly I had the same problem recently, couldn't resolve it and >>> made a web service on a linux server ;) I was calling irfanview >>> however. >>> >>> HTH, Jochen >>> >>> -- >>> NZ PHP Users Group: http://groups.google.com/group/nzphpug >>> To post, send email to [email protected] >>> To unsubscribe, send email to >>> [email protected] >>> >> > > -- > NZ PHP Users Group: http://groups.google.com/group/nzphpug > To post, send email to [email protected] > To unsubscribe, send email to > [email protected] > -- NZ PHP Users Group: http://groups.google.com/group/nzphpug To post, send email to [email protected] To unsubscribe, send email to [email protected]
