Page 1 of 1

how to use this command in php?

Posted: 2008-08-07T00:51:39-07:00
by sptx
The command is:
convert i.png -bordercolor white -border 1x1 -matte -fill none -fuzz 20% -draw "matte 0,0 'floodfill'" -shave 1x1 o.png

I use imagemagick by php_imagick.dll. I want use the command in php,but i can't run 'exec' or 'passthru'.

so what I write like this...

$image = new Imagick('i.png');
//what code???
$image->writeImage('o.png');

thanks a lot.

Re: how to use this command in php?

Posted: 2008-08-07T06:58:59-07:00
by Bonzo
You are in the wrong part of the forum as you are using Imagick which is a program for Imagemagick :?
Try posting here http://redux.imagemagick.org/discourse- ... m.php?f=18

Re: how to use this command in php?

Posted: 2008-08-07T20:41:17-07:00
by sptx
sorry ,i repost it already.