Page 1 of 1

Combinine GIF images correctly and making it smaller

Posted: 2007-05-23T21:40:20-07:00
by phoniclynx
OK.. I have posted this once and somehow my user name and post disappeared so I will post it again.

I have 3+ images Images that I would like to converge and make one image. They are The background and an image of an animated flag and several images (13 of them) that contain the data. of the rain.

so far I am using the line

Code: Select all

convert googleback.gif  \( ./flags/flag.gif -repage +295+275 -trim -set dispose previous \) -coalesce -loop 0 final.gif
to create the image that has puts the flag onto the background and makes it an animation.

OK here's the problem.. I have read the documentations and no idea what I need to do to get this right. That line there creates the flag and makes the flag animate and then flash off and on again and give me a 2.38MB file, which is far too big. I want to beable to put it all together where the flag animates and also the rain images (current.gif ... 1.gif ... 2.gif ... 3.gif etc etc) to all animate together and to have the smallest image file size as possible...

Can anyone please help?

Re: Combinine GIF images correctly and making it smaller

Posted: 2007-05-24T16:52:19-07:00
by anthony
Untill recently merging to animations (or two sequences of images) was very difficult in IM.
Now it isn't.

First make sure you have the latest IM that has the new -layers composite method
convert -list layers

Second go though the examples on
http://www.imagemagick.org/Usage/anim_mods/

This page details how you can add a background to an animation, and then overlay two sequences of images (they should be the same length). Rememebr timings are preserved from the first 'destination' sequence, unless that sequence is the single image 'special case'.

Re: Combinine GIF images correctly and making it smaller

Posted: 2007-05-24T18:09:16-07:00
by phoniclynx
That is a dead link you've given me there ?

Re: Combinine GIF images correctly and making it smaller

Posted: 2007-05-24T18:23:36-07:00
by anthony
Sorry, fixed it (missed an 's' on the final directory). Here's another copy.
http://www.imagemagick.org/Usage/anim_mods/