Gimp-Forum.net
how to apply curves to multiple images? - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: General questions (https://www.gimp-forum.net/Forum-General-questions)
+--- Thread: how to apply curves to multiple images? (/Thread-how-to-apply-curves-to-multiple-images)



how to apply curves to multiple images? - estatistics - 02-02-2025

how to apply curves to multiple images?

Or in more general sense, how to apply a set of operations, in multiple images at once?
Yes, i know about batch mode.

Somewhere i read to import them as the layers of a single image, then how you saved them as individual images?


RE: how to apply curves to multiple images? - Ofnuts - 02-02-2025

See my ofn-tiles and ofn-layer-tiles scripts, which create/save a big layer from/to individual tile files (ofn-tiles) or from/to multiple layers in the image (ofn-layer-tiles). Once you have the big layer, you can apply any kind of global color change (Curves or else) uniformly.

In a slightly more "manual "way, keep in mind that Gimp keeps your last settings around in most Color tools, so you can process images one by one,, and reuse the same settings on each image:

[attachment=13040]



RE: how to apply curves to multiple images? - rich2005 - 02-02-2025

(02-02-2025, 01:27 PM)estatistics Wrote: how to apply curves to multiple images?

Or in more general sense, how to apply a set of operations, in multiple images at once?
Yes, i know about batch mode.

Somewhere i read to import them as the layers of a single image, then how you saved them as individual images?

I normally go for BIMP, but you already know about batch curves.  

For an image with individual layers you could try the gmic_gimp_qt plugin. That has a curves filter, which I like, more choice of type but does not use Gimp curve files.

Use it once to determine a curve, then apply to a stack of images as:

[attachment=13041]

You can save as a "fave" for use later if you want

Then there are several utilities to export layers to individual files. Ofnuts has a python plugin or I use an old script-fu


RE: how to apply curves to multiple images? - estatistics - 02-02-2025

i cant install BIMP due to gimp-devel-tools (i cant find them for debian).


RE: how to apply curves to multiple images? - Ofnuts - 02-02-2025

(02-02-2025, 02:18 PM)estatistics Wrote: i cant install BIMP due to gimp-devel-tools (i cant find them for debian).

gimptool-2.0 (which is used to compile/install C plugins on Linux) is part of the standard install IIRC.


RE: how to apply curves to multiple images? - rich2005 - 02-02-2025

In my experience libgimp2.0-dev which installs gimptool-2.0 is a separate call and comes with a whole load of dependencies (from gcc to you-name-it).

@estatics
It might help if you update us on actual Gimp and Debian versions. For example ChromeBook users often install a version of Debian.

If your Gimp 2.10 comes with python then use Ofnuts method, if not then:

BIMP compiles reasonably easily but attached one that might work (it is the one I compiled sometime...)
Unzip and put in your Gimp 2.10 plugins folder.   ~/.config/GIMP/2.10/plug-ins/  It might not work, it has dependencies, libexiv2 sometimes needs installing.

If you need a version of Gimp 2.10.38 that includes most libs then try the Gimp2.10.38 appimage from
https://github.com/ivan-hc/GIMP-appimage/releases/tag/continuous-hybrid

As an example, a Debian 12 (which comes with Gimp 3.0) and Gimp 2.10 appimage +BIMP  (hate YT these days so on my storage)

https://u.pcloud.link/publink/show?code=XZjdkp5ZoLpO9bKB4wuId4NbQrShLuXuEgYX


RE: how to apply curves to multiple images? - estatistics - 02-02-2025

3.0.0-RC2 in debian trixie


RE: how to apply curves to multiple images? - rich2005 - 02-02-2025

(02-02-2025, 07:53 PM)estatistics Wrote: 3.0.0-RC2 in debian trixie

Oh dear,  Well BIMP code does not compile for Gimp 3.0 - so rule that out. You can always use that appimage I referenced.

I do not know if Ofnuts has his tiles plugin for Gimp 3 python yet,

Then there is the gmic gimp plug for Debian 12 / Gimp 2.3.0 rc2  - as previous explanation.

https://u.pcloud.link/publink/show?code=XZpyXp5ZLToE3OtJT9mIE28Pu7vbF4hdMpnk  (about 6 MB zipped)
Edit: Gimp 3 plugins go in their own folder so, the plugin gmic_gimp_qt goes in a folder named gmic_gimp_qt and that goes in  ~/.config/GIMP/3.0/plug-ins/

[attachment=13043]

...but as far as I know, nothing yet to export layers to individual files, you would have to export each layer individually. So you might as well just open the images and apply the last used curve.


RE: how to apply curves to multiple images? - Ofnuts - 02-03-2025

(02-02-2025, 08:31 PM)rich2005 Wrote: I do not know if Ofnuts has his tiles plugin for Gimp 3 python yet,

I have ofn3-layer-tiles here. However there is currently to no way export individual layers, because there is no widget for directories in the auto-generated dialogs and the Gimp devs are alluding to a future mass export function, so there isn't much incentive to write something complicated that will quickly becomes obsolete.