RSS/Atom feed Twitter
Site is read-only, email is disabled

Script-Fu needed: apply Auto-White-Balance on all images...

This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

2 of 2 messages available
Toggle history

Please log in to manage your subscriptions.

Script-Fu needed: apply Auto-White-Balance on all images... durumdara@gmail.com 17 Dec 16:36
  Script-Fu needed: apply Auto-White-Balance on all images... Kevin Cozens 17 Dec 17:28
durumdara@gmail.com
2007-12-17 16:36:22 UTC (about 17 years ago)

Script-Fu needed: apply Auto-White-Balance on all images...

Hi!

I needed a script-fu routine that apply Auto-White-Balance on all OPENED images...
Like the Save-All script-fu that provided by an user in this list.

I don't wanna use outer tool, because sometimes the Auto-White-Balance is makes wrong result.

So, I wanna work like this:

1.) I open 20-50 images. 2.) I start the script that use AWB on images. 3.) I see the images, and check them all one by one. If the AWB is making wrong result, I correct it.
4.) I click on Save All.
5.) I click on Close All.

This will very simplify the work with my photos.

(I tried to find same effect (AWB) in Photoshop CS 2, but I not found it. But it is possible that I was too tired... I think that PS is programmable too. But first I wanna solve this problem with GIMP, if possible...)

Thanks for your help: dd

Kevin Cozens
2007-12-17 17:28:30 UTC (about 17 years ago)

Script-Fu needed: apply Auto-White-Balance on all images...

durumdara@gmail.com wrote:

I needed a script-fu routine that apply Auto-White-Balance on all OPENED images...
Like the Save-All script-fu that provided by an user in this list.

I don't wanna use outer tool, because sometimes the Auto-White-Balance is makes wrong result.

By "outer tool" I assume you are referring to the menu item. The difference between the menu item and using the function from a script is the script callable version allows you to specify whether it should use adjust based on shadow, mid-tones, or hightlights. The menu item doesn't give you a choice. It just uses whatever it has as its default settings.

You could easily modify the Save All script to do what you want. The main change involves replacing the call to gimp-file-save with a call to gimp-color-balance with the parameters you want to use. You also want to change the name of the script from script-fu-save-all-images to something more appropriate, and edit the register block to put the script under /Colors/Auto.

There are several scripts (ie. chrome-it.scm) which are shipped with GIMP that make a call to gimp-color-balance if you are unsure about the parameters you need to pass.