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?
keeping animation settings..
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: keeping animation settings..
I do not know the proper answer, but see
http://www.imagemagick.org/Usage/anim_basics/#list_info
http://www.imagemagick.org/Usage/anim_mods/#frame_mod
http://www.imagemagick.org/Usage/anim_basics/#list_info
http://www.imagemagick.org/Usage/anim_mods/#frame_mod
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: keeping animation settings..
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.
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/
https://imagemagick.org/Usage/