keeping animation settings..

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
dognose
Posts: 265
Joined: 2005-03-08T22:16:37-07:00

keeping animation settings..

Post by dognose »

Hi,
I'm working with some animated gifs, editing individual frames, then recomposing the animation.
convert oldimage.gif -coalesee %d.gif
.. edit some of the frames ..
.. then recompose with
convert 1.gif 2.gif 3.gif final.gif

However, I lose animation settings like frame timing and looping.
Is there a better way to swap out the frames, or retain the gif settings?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: keeping animation settings..

Post by fmw42 »

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

Re: keeping animation settings..

Post by anthony »

I suggest you look at using the script... "gif2anim"
http://www.imagemagick.org/Usage/anim_basics/#list_info

This separated the GIF animation into separate images, and creates a file with convert settings that are needed to re-build the animation from those images. So you get a set of 'frame' images plus a file of all the 'meta-data' associated with the animation.

The complement script is "anim2gif" which essentially reads that script removes all comments and gives the options to a "convert" command with a filename for the output. Script options to optimize or change input frame filenames or output filename.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply