Draw heart shape in imagemagick

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

Draw heart shape in imagemagick

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

Re: Draw heart shape in imagemagick

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

Re: Draw heart shape in imagemagick

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

Re: Draw heart shape in imagemagick

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