Page 1 of 1

Any possible to make edge blur in shape image?

Posted: 2010-02-07T22:04:09-07:00
by jokepondy
Hello Guys..

Have a nice weekstart ...

$samp7 = "images/test1.jpg";
$samp101 = "images/circles.gif";

exec("convert $samp7 \( +clone -threshold -1 -negate -fill white -draw \"circle 64,64 64,0\" \) -alpha off -compose copy_opacity -composite $samp101");

In this code .. I got good circle image ..its working fine for me.. but edges of the circle is not clear ..

So my question is ..is it possible to make the circle edge like blur then can we make any color blur ?

I epxect your replies..thanks for your precious help.

Re: Any possible to make edge blur in shape image?

Posted: 2010-02-08T10:58:55-07:00
by fmw42
Sorry I don't understand your question. The command has no color other than the input image nor does it have any blur specified. Can you post a link to your resulting image and then explain a bit more clearly what you want to happen.

Re: Any possible to make edge blur in shape image?

Posted: 2010-02-09T20:56:26-07:00
by jokepondy
Hello Frnd

Thanks for your reply ..We get the shapes like circle and eclipse ..based on our code ..

My Question is .. This circle and other shapes are not clear edges ..do you look our previous ouptput which you given to me .. So i need perfect edge ...

1. Any possible to create like this shape Image .... Shape have white border with blur effect ..

Your help is precious for me.

Re: Any possible to make edge blur in shape image?

Posted: 2010-02-09T22:08:22-07:00
by fmw42
try this (note you have to use png for output so that it antialiases the edge using transparency)

Image

convert zelda3.jpg \
\( +clone -channel rgba -alpha on -threshold 100% -fill white -draw "circle 64,64 64,0" \
-virtual-pixel black -blur 1x65000 -level 50%,100% \) \
-alpha off -compose copy_opacity -composite zelda3_circ2.png

Image

To antialias more use -blur 2x65000