Thanks, but I can't run 'exec' or 'passthru' command...I can use
imagemagick only by php_imagick.dll.
> 2008/8/12 leonidas <[EMAIL PROTECTED]>:
>> try this:
>>
>> exec("convert i.png -bordercolor white -border 1×1 -matte -fill none -fuzz
>> 20% -draw \"matte 0,0 'floodfill'\" -shave 1×1 o.png");
>>
>>
>>
>>
>> ----- Original Message ----- From: "tx sp" <[EMAIL PROTECTED]>
>> To: <[email protected]>
>> Sent: Tuesday, August 12, 2008 3:27 AM
>> Subject: [magick-users] how to use the command in php code?
>>
>>
>>> I want change this command into php code:
>>> convert i.png -bordercolor white -border 1×1 -matte -fill none -fuzz
>>> 20% -draw "matte 0,0 'floodfill'" -shave 1×1 o.png
>>> but I don't know how to do it,could you help me?
>>> Thanks a lot.
>>>
>>> $image = new Imagick('i.png');
>>> $image->borderImage(new ImagickPixel("white"),1,1);
>>> //…
>>> //what code in here???
>>> //…
>>> $image->shaveImage(1,1);
>>> $image->writeImage('o.png');
>>>
>>> thanks
>>>
>>> _______________________________________________
>>> Magick-users mailing list
>>> [email protected]
>>> http://studio.imagemagick.org/mailman/listinfo/magick-users
>>>
>>
>>
>
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users