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.
how to use this command in php?
Re: how to use this command in php?
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
Try posting here http://redux.imagemagick.org/discourse- ... m.php?f=18