Adding Circle to Animated GIF

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
deklin
Posts: 5
Joined: 2016-03-07T10:09:35-07:00
Authentication code: 1151

Adding Circle to Animated GIF

Post by deklin »

I would like to add a blue circle to a fixed location of an animated GIF
Image

Code: Select all

convert image.gif  -draw "fill blue circle 10,10 15,15" circle.gif
I get two circles. One circle is where I want it but I also get an unwanted bonus circle that jumps around.

Image
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Adding Circle to Animated GIF

Post by snibgo »

You need to "-layers coalesce" the input, before drawing the ball on each frame.
snibgo's IM pages: im.snibgo.com
deklin
Posts: 5
Joined: 2016-03-07T10:09:35-07:00
Authentication code: 1151

Re: Adding Circle to Animated GIF

Post by deklin »

Thanks, that solved it.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Adding Circle to Animated GIF

Post by anthony »

For more information on this exact problem see
IM examples, GIF Animations, Modification
Drawing on a GIF Animation...
http://www.imagemagick.org/Usage/anim_mods/#draw
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply