Combinine GIF images correctly and making it smaller

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
phoniclynx

Combinine GIF images correctly and making it smaller

Post 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?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Combinine GIF images correctly and making it smaller

Post 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'.
Last edited by anthony on 2007-05-24T18:22:23-07:00, edited 1 time in total.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
phoniclynx

Re: Combinine GIF images correctly and making it smaller

Post by phoniclynx »

That is a dead link you've given me there ?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Combinine GIF images correctly and making it smaller

Post by anthony »

Sorry, fixed it (missed an 's' on the final directory). Here's another copy.
http://www.imagemagick.org/Usage/anim_mods/
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply