You are here

Batch to Dupe Layers, Apply Modes, Adjust Layer?

Hey, everyone. If anyone can point me in the right direction, it would be vastly appreciated and warrant internet cookies (the good kind that grandma used to make).

I'm working on a 3D project right now that has animation rendered at 60 FPS as individual images. All of these images receive the same treatment:

The image is duped.
The duped layer is set to Overlay mode.
The duped layer is desaturated to grayscale (using Hue-Saturation)
The duped layer is given 60% layer opacity.
A new layer is added, given a bucket fill of a certain color.
The new color layer is set to Overlay mode.
All of this is saved as a new image and GIMP is allowed to merge the visible layers on its own.

In and of itself, this process only takes a few minutes. However, I'm looking at editing over 1,000 images by the time I'm done...

I'd really like to make my job a little easier.

One little thing I would like to do is be able to process an entire folder rather than just on an image-by-image basis. Basically as little user interaction possible.

If anybody happens to know of some pre-existing scripts that I could use as-is, or help me figure out some way to merge multiple scripts together to basically achieve the above functions I would be eternally indebted to your immortal soul. I don't mind writing my own script, but considering my "computer language" is only advanced enough to scream at the monitor and cry over my inevitable defeat at the hands of my unfeeling electronic overlord help would be much appreciated.

Thank you!

As long as all of your frames are named so as to be numbered sequentially (e.g., frame_0001.jpg) then the GIMP-GAP could greatly simplify your editing.

First, open the first frame and use "Video->Frames Convert" to make a copy of your original files. You will be working on this copy, leaving your original intact.

The first four of your steps would be performed using the "Video->Frames Modify" dialog.

'The [layer] is duped' -- Function: Duplicate layer(s)

'duped layer is set to Overlay' -- Function:Layer Modes->Set Mode to Overlay

'duped layer is desaturated' -- Function: Apply filter on layer(s), Filter:plug-in-wr-hue-sat, set the Saturation to "-100".

'duped layer is given 60% layer opacity' -- Function: Apply filter on layer(s), Filter:plug-in-wr-color-levels, select the Alpha channel and set both of the output levels to "153".

'A new layer is added, filled with a certain color' &
'The new color layer is set to Overlay mode'
-- create a new image of the same dimensions as your frames and fill it with the appropriate color. Use "Video->Move Path" to copy that layer on top of each of your frames (set the Mode: to "Overlay", leaving all other settings at their defaults).

'All of this is saved as a new image and GIMP is allowed to merge the visible layers on its own' -- use "Video->Frames Modify" dialog to perform Function: Merge layers, select the "All layers (ignore pattern)" option in the dialog.

Subscribe to Comments for "Batch to Dupe Layers, Apply Modes, Adjust Layer?"