Gimp-Forum.net
Auto whitebalance from command line - 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: Auto whitebalance from command line (/Thread-Auto-whitebalance-from-command-line)



Auto whitebalance from command line - balancedeblancos - 05-28-2020

GIMPs Color->Auto->Whitebalance tool does more or less exactly what I want. But I want to run it on a single image from command line but it doesn't seems to be that easy.

There are many SCM scripts out there that does some sort of white balance but not using this menu item directly like this Luca De Alpharo's white balance script linked from this post https://www.gimp-forum.net/Thread-White-balance?highlight=white+balance

In the GIMP source code I can see that histograms are extracted for each RGB channel for Color->Auto->Whitebalance and but in the SCM above there is no histogram extraction and the same applies for a few other white balance scripts I've found.

How can I run GIMP Color->Auto->Whitebalance from the command line (without user interaction) or at least something very similar?
ilar?

GIMP 2.8 Ubuntu 16.04


RE: Auto whitebalance from command line - Ofnuts - 05-28-2020

Luca de Alfaro's script takes one color and modifies the color levels to shift this color to neutral gray (R=G=B).

AFAIK there is no API for the auto-white balance in Gimp.


RE: Auto whitebalance from command line - balancedeblancos - 05-29-2020

Thank you ofnuts for your reply even if it wasn't what I hoped for.