how to use this command in php?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
sptx

how to use this command in php?

Post 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.
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: how to use this command in php?

Post 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
sptx

Re: how to use this command in php?

Post by sptx »

sorry ,i repost it already.
Post Reply