Page 1 of 1

Translate command-line call to Imagick method calls

Posted: 2010-11-24T09:01:22-07:00
by cosmin.dorobantu
Hello,

I have a big problem. I have a task where I am requested to transform some command-line imagick calls to PHP api calls and I got really stuck.
Can someone please help me with the following line of code:

Code: Select all

exec("convert {$tmpdir}/tmp.png  -matte \( +clone -matte  -virtual-pixel transparent -channel RGBA  -motion-blur 0x{$radius}+90 \) -compose DstIn -composite {$tmpdir}/shadow.png");
How can this call be best converted to a series of Imagick method calls?

Thank you in advance.

Re: Translate command-line call to Imagick method calls

Posted: 2011-01-05T21:09:31-07:00
by fmw42
it would be easier to just use the command line call with PHP exec.

for Imagick, see http://us3.php.net/manual/en/book.imagick.php