how to use this command in php?
Posted: 2008-08-07T00:51:39-07:00
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.
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.