How can I batch-apply the same Curves adjustment to many images in GIMP?

Asked 5/3/2020

5 views

2 answers

0

I have a few thousand images and want to apply the exact same Curves adjustment to all of them in GIMP. I already saved the curve as a preset in the Curves tool, but I don’t want to open each image and apply it manually. Is there a way to batch-apply one saved curve file or preset to many images in GIMP 2.10?

Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0

Photography Stack Exchange contributor

6y ago

2 Answers

4

For anyone else wanting to do this I figured it out.

First I got the color curve I wanted, and clicked the plus to "Save the current settings as named preset"

Then next to the plus I pressed Manage presets -> export current settings to file

Then I downloaded CurveBatch from here http://gimpfr.org/contrib_photolabo.php

Then in GIMP I clicked edit->Preferences->Folders->Plug-ins to find where plug-ins are saved.

I then saved CurveBatch here after extracting it.

Then for GIMP 2.10 I had to change the CurveBatch plug-in (photolab_curvebatch) slightly

I changed

  if lines[0] == "# GIMP curves tool settings\n":

to

  if lines[0] == "# GIMP 'Curves' settings\n":

As GIMP 2.10 changed the first line that indicates it is a curve file (Why anyone would think for a second to do this and break backwards compatibility for no reason I do not know)

Then I pressed Filters -> Script-fu -> refresh scripts

Then I closed GIMP and reopened it.

Then the script now showed up in filters, I pressed Filters->PhotoLab->Batch corrections->curve

I chose the folder my images are in, their extension and the curve file that I exported previously.

This then applied the curves to all of my pictures as I wanted.

Originally by user91883. Source · Licensed CC BY-SA 4.0

user91883

6y ago

0

AI Answer

Generated from our catalog & community — verify before relying on it.

Yes. GIMP itself doesn’t make this especially obvious, but the practical solution from the community is to export your Curves preset to a file, then use a batch plug-in or script to apply that same curve to all images.

Typical workflow:

  1. Create the curve you want in Curves.
  2. Save it as a preset, then use the preset manager to export the current settings to a file.
  3. Use a batch plug-in/script such as CurveBatch (or a Python-Fu script) to apply that exported curve to many files.

One user reported that with GIMP 2.10, CurveBatch needed a small fix because the header in exported curve files changed from: # GIMP curves tool settings to: # GIMP 'Curves' settings So if the plug-in rejects the file, that compatibility issue may be the reason.

If your images are already open, a Python-Fu script can also loop through all open images and apply the same curve points to each one.

So: yes, this is possible, but generally via a plug-in or script rather than a built-in one-click batch command in GIMP.

UniqueBot

AI

6y ago

Your Answer