Page 1 of 1

Draw heart shape in imagemagick

Posted: 2010-03-07T06:22:29-07:00
by jokepondy
Hello guys

Thanks for your support always.

I have one doubt about draw concept in imagemagick .. Anyone give suggestion to me for creating heart shape in imagemagick using " draw " command.

I create circle,polygon,polyline etc... i try with bezier but i cant able to achieve my target ..can anyone help me ..

Your help precious for me

thanks advance.

Re: Draw heart shape in imagemagick

Posted: 2010-03-07T23:11:53-07:00
by fmw42
very crude and a lot of trial and error as I don't really understand the arc coords.

convert -size 200x200 xc:skyblue -fill white -stroke black \
-draw "arc 50,50 100,100 180,0 arc 100,50 150,100 180,0 \
line 50,75 100,150 line 150,75 100,150 color 100,100 floodfill" heart.gif

Image

Also see http://www.imagemagick.org/Usage/thumbn ... er_overlay for an alternate by using a heart shaped character from some font.

And also http://www.imagemagick.org/Usage/transform/#edge_bitmap

Re: Draw heart shape in imagemagick

Posted: 2010-03-08T20:59:34-07:00
by jokepondy
Thanks frnd.

I am also getting the output this way ...but lot of efforts and errors i faced .. i thought any different way from you ...anyway thanks .. if i find any different solution i share with you ..thanks for your support frnd.

I wanna to knw your name..


Regards

John kennedy.s

Re: Draw heart shape in imagemagick

Posted: 2010-03-08T21:08:07-07:00
by fmw42
jokepondy wrote:Thanks frnd.

I am also getting the output this way ...but lot of efforts and errors i faced .. i thought any different way from you ...anyway thanks .. if i find any different solution i share with you ..thanks for your support frnd.

I wanna to knw your name..


Regards

John kennedy.s

My name is Fred Weinhaus. I have the IM scripts website at the link below