Animated Gifs - Join together

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
agriz
Posts: 237
Joined: 2011-10-01T02:21:30-07:00
Authentication code: 8675308

Animated Gifs - Join together

Post by agriz »

I have some animated gif images. Names are not in a sequence.
For example,
2.gif
a.gif
34.gif

I want to join those images as a single image.
Something like,

I can do this for jpeg or png. But i guess there is some trick for gif images. I don't know how to do it.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Animated Gifs - Join together

Post by fmw42 »

agriz wrote:I have some animated gif images. Names are not in a sequence.
For example,
2.gif
a.gif
34.gif

I want to join those images as a single image.
Something like,

I can do this for jpeg or png. But i guess there is some trick for gif images. I don't know how to do it.

How do you want to join them? As layers of a single image or side-by-side?

As layer:

convert 2.gif a.gif 34.gif result.gif


Side-by-side (horizontally)

convert 2.gif a.gif 34.gif +append result.gif

Side-by-side (vertically)

convert 2.gif a.gif 34.gif -append result.gif

If the images are different sizes, you can align them as you desire with -gravity.

see
http://www.imagemagick.org/Usage/layers/#append
agriz
Posts: 237
Joined: 2011-10-01T02:21:30-07:00
Authentication code: 8675308

Re: Animated Gifs - Join together

Post by agriz »

I want side by side horizontal. But it is a terrific answer with all kind of solution!!!

Thanks a lot!
Post Reply