Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Looking for Color Temperature Function for script
#1
Hello everyone.

I am a new user of the forum and a casual user of Gimp.

I am using Gimp 2.10.6 on Ubuntu 18.10 and recently i needed to make a batch edit of some images.

More Specifically i had 30 portrait images and needed to apply two actions on them:

1. Change Color Temperature (The action with the Original/Intended Color Temperature)
2. Change Brightness-contrast

I had tried my edit in one image through the Gui and everything worked as it should.

I needed to do it as a batch to save time so although i had never tried it before i tried to use script-fu.

After some reading and searching i modified a script i found here:
https://discuss.pixls.us/t/script-fu-exa...nners/7341

and i managed to do what i needed. At least 50% of that.

My problem is that although the script runs fine, and the (gimp-drawable-brightness-contrast) function does exactly what it is supposed to do, i cannot find the function/plugin to use the Color Temperature Function found under the Color Menu in Gimp.

I looked in Procedure Browser/Plug-In Browser and on the internet and i did not find even a reference to that function/plugin.

As if it is something so new that it is not used at all or included in the functions that someone can use.

Does anyone know what is the name of the function that does the Color Temperature action in Gimp so that i can use it in a script ?
Reply
#2
Color-Temperature is a GEGL operation and not scriptable.

You could try a third party script/plug-in that will show up in the Gimp pdb. Ofnuts once suggested http://luca.dealfaro.org/photography/Colortemp with the caveat that it is old and might produce unpredictable results with Gimp 2.10

An alternative, the gmic plugin, see http://www.gmic.eu has filters for both lightness and color temperature but not exactly the same as Gimp. Not difficult to script. Attached an example, lightens and adjusts color-temp. You do need gmic_gimp_qt installed, the example script entry shows up bottom of Filters menu.


Attached Files
.zip   gmic_shell.scm.zip (Size: 727 bytes / Downloads: 6)
Reply
#3
(11-02-2018, 11:45 AM)rich2005 Wrote: Color-Temperature is a GEGL operation and not scriptable.

You could try a third party script/plug-in that will show up in the Gimp pdb. Ofnuts once suggested http://luca.dealfaro.org/photography/Colortemp with the caveat that it is old and might produce unpredictable results with Gimp 2.10

An alternative, the gmic plugin, see http://www.gmic.eu has filters for both lightness and color temperature but not exactly the same as Gimp. Not difficult to script. Attached an example, lightens and adjusts color-temp. You do need gmic_gimp_qt installed, the example script entry shows up bottom of Filters menu.

rich2005 thank you very much for your immediate and precise answer.

I will take a look at your suggestions and see what will come.

<A little Off-topic>
Of course it seems to me a little odd that some of the actions available are scriptable and other are not.
Maybe GEGL operations will be scriptable in a future version ?
Reply


Forum Jump: