Page 1 of 1

Lay tarnsparent gif over animated gif

Posted: 2007-08-08T04:04:17-07:00
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.

Re: Lay tarnsparent gif over animated gif

Posted: 2007-08-08T08:50:54-07:00
by defied

Code: Select all

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

maybe that will work ?

Re: Lay tarnsparent gif over animated gif

Posted: 2007-08-09T01:29:18-07:00
by mtishetsky
unfortunately not

Code: Select all

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

Re: Lay tarnsparent gif over animated gif

Posted: 2007-08-09T01:32:10-07:00
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

Re: Lay tarnsparent gif over animated gif

Posted: 2007-08-09T22:59:58-07:00
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