Gimp-Forum.net

Full Version: Apply Text to Multiple Layers, and then Export With each Layer as Individual PNG
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm new here.

Thanks for the warm community.

I know about the "Export Layers As..." plug in. It has saved me many countless hours.

However I'm wondering about something else in that arena.

I have a folder with 48 PNG images, all the exact same image, each with a different color variation:

Image 1

I have opened each of these files as its own layer. I would like to type the same text ON ALL OF THEM:

Image 2

I then want to export each one as a PNG with that text on it.

Is this possible? I'm kind of a newbie here...any way that this can be done or any advice would be helpful. Thanks so much!
Are you really using Gimp 2.8 ?

One way is the Gimp batch plugin, if you use Gimp 2.8 then get the 1.18 version https://alessandrofrancesconi.it/projects/bimp/

If there are hundreds of the images then maybe not Gimp use ImageMagick command line.

Using Gimp, a simple script  sg-combine-bg.scm Open the files as layers, Add a text layer, Move the text layer to the bottom of the layer stack, Apply the script - bottom of the Animation menu.

Quick demo of that https://i.imgur.com/DMN8mDu.mp4

The site that script comes from is old and a bit scrambled at the moment, so the script is attached. Unzip it, put it in your scripts folder.
(03-21-2022, 06:23 PM)Silverfish Wrote: [ -> ]I'm new here.

Thanks for the warm community.

I know about the "Export Layers As..." plug in. It has saved me many countless hours.

However I'm wondering about something else in that arena.

I have a folder with 48 PNG images, all the exact same image, each with a different color variation:

Image 1

I have opened each of these files as its own layer. I would like to type the same text ON ALL OF THEM:

Image 2

I then want to export each one as a PNG with that text on it.

Is this possible? I'm kind of a newbie here...any way that this can be done or any advice would be helpful. Thanks so much!

With a script of mine (ofn-export-layers-combinations):
  • Create an image with all your PNG layers in a group:
    • File > Open the first
    • Add a layer group, move the layer to the group
    • With the group selected in the layers list, File > Opens as layers all the others (this can be done in one action because you can select several files in that dialog), which should add them to the group)
  • Add the text layer (outside of the group) at the top
  • Set the chain link on the layer group
  • Call the script, which will iterate the layers in the group and export images that are a combination of the text layer and a layer from the group.