animated gif out and back loop, backwards, forwards animatio

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
danpaluska
Posts: 7
Joined: 2009-09-20T08:01:51-07:00
Authentication code: 8675309

animated gif out and back loop, backwards, forwards animatio

Post by danpaluska » 2009-09-20T08:07:43-07:00

i've used this command and it works great.
convert -delay 20 -loop 0 foo*.gif animatedfoo.gif

so if i have foo1, foo2 ... foo20, then i get a 20 frame movie. this is great if frame 20 lines up with frame 1 but what if not?

i would like to go 1 to 20 and then go back to 1. so a 39(or 40) frame animation.
or 1,2,... 19,20,19,18 ... 3,2,1.

some subtlety in the turnaround frames but i think it's easy to see the basic idea.

is there a way to make this happen easily in a single command line? or do i need to copy and rename files? or some other magick?

thanks!

boranj,
dan

User avatar
anthony
Posts: 8878
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: animated gif out and back loop, backwards, forwards animatio

Post by anthony » 2009-09-20T17:13:20-07:00

You want a patrol-cycle. Like a guard on patrol.

See Im Examples, Animation Modification, Reversing Animations
http://www.imagemagick.org/Usage/anim_mods/#reverse
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
http://www.imagemagick.org/Usage/

danpaluska
Posts: 7
Joined: 2009-09-20T08:01:51-07:00
Authentication code: 8675309

Re: animated gif out and back loop, backwards, forwards animatio

Post by danpaluska » 2009-09-21T07:05:40-07:00

thanks!

Post Reply