Gimp script batch adjust level
Gimp script batch adjust level
/usr/bin/env python
import os
if not os.path.exists(output_folder):
os.makedirs(output_folder)
# Check if the file is an image (you can add more extensions if needed)
drawable = image.active_layer
pdb.gimp_image_undo_group_start(image)
# Adjust the levels: increase low input from 0 to 125
# Parameters: drawable, channel (0=value, 1=red, 2=green, 3=blue, 4=alpha), low-input, high-
input, gamma, low-output, high-output
pdb.gimp_image_undo_group_end(image)
pdb.gimp_image_delete(image)
register(
"Increase low input levels from 0 to 125 for a batch of images.", # Long description