removing all even numbered frames from my 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?".
User avatar
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Post by glennrp »

On Unix/Linux:
  • convert big.gif +adjoin frame%04d.gif
    convert frame???[13579].gif small.gif
If your big.gif has offsets (images smaller than the first frame)
you will have to use the -coalesce and -deconstruct options.


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

Post by anthony »

Nice solution Glen.

I was working on improvments to GIF animation handling in IM.

One of these planned improvments was a '-shuffle' image reording operator
(like -insert -delete and -swap operators). The reverse of that operator
would probably also be usedful for what you want to do.

However my own additions lost momentent due to a europian vacation and change in job description, so I am not sure when these new additions will be made. Stay tuned.

Or perhaps you would like to look at the source and contribute to the effort :-)
Anthony Thyssen -- Webmaster for ImageMagick Example Pages