RSS/Atom feed Twitter
Site is read-only, email is disabled

Layer on top of a .gif

This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

4 of 4 messages available
Toggle history

Please log in to manage your subscriptions.

Layer on top of a .gif Paula Koval 19 Sep 15:48
  Layer on top of a .gif Jan Kandziora 19 Sep 16:42
   Layer on top of a .gif Ofnuts 20 Sep 14:25
  Layer on top of a .gif rich2005 19 Sep 17:24
Paula Koval
2016-09-19 15:48:10 UTC (about 8 years ago)

Layer on top of a .gif

I have tried many ways to put a non-moving layer of text on top of a .gif image. So far, the best I can do is to add the text page to the moving image and have it flash. Does anyone know how to put a transparent layer with non-moving text on top of a moving .gif image? Thank you for considering my question.

*"It's so nice to know so many nice people."*


*---Eddie Gallaher (1914-2003)     Radio Personality, Washington, DC
1947-2000*
Jan Kandziora
2016-09-19 16:42:55 UTC (about 8 years ago)

Layer on top of a .gif

Am 19.09.2016 um 17:48 schrieb Paula Koval:

I have tried many ways to put a non-moving layer of text on top of a .gif image. So far, the best I can do is to add the text page to the moving image and have it flash. Does anyone know how to put a transparent layer with non-moving text on top of a moving .gif image? Thank you for considering my question.

The solution is simple. You have to add the text layer to any single frame of the original GIF file.

This can be a bit tedious with GIMP, that's why I have a second tool at hand when it comes to automating procedures: ImageMagick (or GraphicsMagick). The following one-liner will annotate a text over each frame of an animated gif:

$ convert input.gif -gravity center -fill black -annotate +1+1 "TEXT" output.gif

You can format the text as you need with ImageMagick, see

http://www.imagemagick.org/Usage/anim_mods/#annotating

and the other examples.

If you like it better to prepare a annotation frame within GIMP and put it onto each GIF frame, use this line:

$ convert input.gif -coalesce -draw 'image SrcOver 1,1 0,0 text.png' output.gif

The output.gif isn't optimized (meaning: all full frames). If you can't tolerate this, you can let ImageMagick re-optimize it before creating an output file.

$ convert input.gif -coalesce -draw 'image SrcOver 1,1 0,0 text.png' -layers Optimize output.gif

Note that may result in a bit of flicker around the text borders. You can play with the -layers options to reduce that.

http://www.imagemagick.org/Usage/anim_opt/#overlay

Or just stick with the non-optimized file. That one come without any flicker.

Sorry for not having an easy solution with GIMP, but with ImageMagick (or GraphicsMagick) it's so damn simple you cannot beat it easily.

Kind regards

Jan

rich2005
2016-09-19 17:24:48 UTC (about 8 years ago)

Layer on top of a .gif

I have tried many ways to put a non-moving layer of text on top of a .gif
image. So far, the best I can do is to add the text page to the moving
image and have it flash. Does anyone know how to put a transparent layer
with non-moving text on top of a moving .gif image? Thank you for considering my question.

More animations?

using Gimp

Get this script, pop into your GImp profile ".\gimp-2.8\scripts"

http://chiselapp.com/user/saulgoode/repository/script-fu/wiki?name=sg-combine-bg

Read the instructions

Make text layer

"Open as layers" the animation (gif) to put on top of the text layer.

Use Filters -> Animation -> Overlay background

Delete the original background layer (if required)

Export the file as a something.gif

Ofnuts
2016-09-20 14:25:39 UTC (about 8 years ago)

Layer on top of a .gif

On 19/09/16 18:42, Jan Kandziora wrote:

Am 19.09.2016 um 17:48 schrieb Paula Koval:

I have tried many ways to put a non-moving layer of text on top of a .gif image. So far, the best I can do is to add the text page to the moving image and have it flash. Does anyone know how to put a transparent layer with non-moving text on top of a moving .gif image? Thank you for considering my question.

The solution is simple. You have to add the text layer to any single frame of the original GIF file.

This can be a bit tedious with GIMP, that's why I have a second tool at hand when it comes to automating procedures: ImageMagick (or GraphicsMagick). The following one-liner will annotate a text over each frame of an animated gif:

$ convert input.gif -gravity center -fill black -annotate +1+1 "TEXT" output.gif

You can format the text as you need with ImageMagick, see

http://www.imagemagick.org/Usage/anim_mods/#annotating

and the other examples.

If you like it better to prepare a annotation frame within GIMP and put it onto each GIF frame, use this line:

$ convert input.gif -coalesce -draw 'image SrcOver 1,1 0,0 text.png' output.gif

The output.gif isn't optimized (meaning: all full frames). If you can't tolerate this, you can let ImageMagick re-optimize it before creating an output file.

$ convert input.gif -coalesce -draw 'image SrcOver 1,1 0,0 text.png' -layers Optimize output.gif

Note that may result in a bit of flicker around the text borders. You can play with the -layers options to reduce that.

http://www.imagemagick.org/Usage/anim_opt/#overlay

Or just stick with the non-optimized file. That one come without any flicker.

Sorry for not having an easy solution with GIMP, but with ImageMagick (or GraphicsMagick) it's so damn simple you cannot beat it easily.

I think this is part of the Gimp Animation Plugin (aka GAP). See also the "title" mode of my interleave-layers script: http://gimp-tools.sourceforge.net/animationtools.shtml