Page 1 of 1

keeping animation settings..

Posted: 2013-08-03T11:36:59-07:00
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?

Re: keeping animation settings..

Posted: 2013-08-03T11:50:31-07:00
by fmw42

Re: keeping animation settings..

Posted: 2013-08-04T23:25:56-07:00
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.