Lay tarnsparent gif over animated gif

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
mtishetsky

Lay tarnsparent gif over animated gif

Post by mtishetsky »

Hello,

Is there an obvious way to lay a transparent gif over an animated one so that it was displayed in each frame? In command line. I have spent the whole day on it and still got nothing. I see the only way to do it at the moment: +adjoin the animation into frames, overlay them in cycle and -adjoin the frames back.

Thanks in advance for your help.
defied

Re: Lay tarnsparent gif over animated gif

Post by defied »

Code: Select all

convert base.gif null: transparent.gif -layers Composite done.gif

maybe that will work ?
mtishetsky

Re: Lay tarnsparent gif over animated gif

Post by mtishetsky »

unfortunately not

Code: Select all

%convert beach.gif null: idle_text.gif -layers Composite out.gif
convert: UnrecognizedLayerType `Composite'.
mtishetsky

Re: Lay tarnsparent gif over animated gif

Post by mtishetsky »

Code: Select all

%convert -version
Version: ImageMagick 6.3.3 08/08/07 Q16 file:///usr/local/share/doc/ImageMagick-6.3.3/index.html
Copyright: Copyright (C) 1999-2007 ImageMagick Studio LLC
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Lay tarnsparent gif over animated gif

Post by anthony »

Your IM is too old. -layers Composite was the latest -layers method added and was added to IM version v6.3.3-7 You probably just missed it by a couple of beta releases.

See http://www.imagemagick.org/Usage/anim_mods/#composite

WARNING: this only works for time synced animations, or mergeing animations to a single image. It does not work for time disjoint animations whish has yet to be developed and added to IM -layers...
See http://www.imagemagick.org/Usage/anim_mods/#merge
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply