Re: Dealing with ImageMagick from PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, July 29, 2007 12:49 am, Eric Holt (PHP List) wrote:
> Right now, I call ImageMagick from a "exec" call in PHP.  When I first
>
> Now, after that long rambling... My question is this:  Would I see a
> big
> speed improvement by using the ImageMagick extension built into PHP
> (MagicWand, is it called?)?  I'd hate to spend all the time recoding
> the
> application to work with MagicWand, only to find out that I dont end
> up
> with any performance increase -- or worse of all, a decrease.

exec() fires up a whole new process, with a micro-environment shell.
That's usually relatively expensive.

So you will almost-for-sure get some kind of improved performance out
of the change.

You could try comparing an exec() of a MUCH simpler ImageMagick call
with the corresponding PHP script to compare the two on your hardware.

That said, if the time is all being spent in the guts of ImageMagick
doing pixel mainpulation, then switching won't help much.

You could also use valgrind/callgrind to see where the time is being
spent, though it might be easier for a newbie to just hack up a PHP
script and an exec to compare...

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux