Any possible to make edge blur in shape image?

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
jokepondy

Any possible to make edge blur in shape image?

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

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

Post 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.
jokepondy

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

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

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

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