You are here

Color Balance 2

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
Rate this item!

Color balance 2 plug-in can be useful to add or remove color tints in shadows, midtones and highlights, while preserving the image luminosity.

See samples:
Original:

After Color Balance 2 filter:

Color Balance 2 UI:

Download from:
https://sourceforge.net/projects/johnlakgimp/files/Color%20Balance%202/

WINDOWS USERS:
Copy .py file in:
Vista/7
C:\Users\[USER]\.gimp-2.8\plug-ins
XP and older
c:\Documents and Settings\[USER]\.gimp-2.8\plug-ins
LINUX USERS:
Python installation:
Python usually ships with the OS so no manual installation is needed. Copy .py file in:
/home/[USER]/.gimp-2.8/plug-ins Check if the file is marked as executable.

In GIMP you will find it under Colors/Color Balance 2 menu.

New in Version: 1.6
> Optionally use small preview for near instant redraw (idea by jontait2, gimpchat.com)
> Makes headless mode usable
New in Version: 1.5.1
> Minor UI fixes (by jontait2, gimpchat.com)
New in Version: 1.5.0:
> Instant Preview (by jontait2, gimpchat.com)
New in Version: 1.4.1:
> Menu repositioning
New in Version: 1.4:
> Major Engine refactoring
New in Version 1.3:
> Engine bugfix
New in Version 1.2:
> Midtones major bugfix.
New in Version 1.1:
> Midtones major bugfix.

GIMP Version: 
Code License: 

Comments

Thanks for looking into this for me. I am running Gimp 2.6.8 on Debian Sid. I do run other Python plugin-ins for Gimp without issue.

Unfortunately I don't recall what settings I used earlier to produce the error, but I will install your revised script and try it this evening, as I am about to walk out the door right now. It does look like a nice script, and I'm looking forward to using it more.

Regards,
Howard

The first time I ran this, it worked, but I wasn't satisfied with the outcome so I used updo to go back to the original and got the following error when I tried to use it a second time:

Traceback (most recent call last):
File "/usr/lib/gimp/2.0/python/gimpfu.py", line 692, in response
dialog.res = run_script(params)
File "/usr/lib/gimp/2.0/python/gimpfu.py", line 353, in run_script
return apply(function, params)
File "/home/xxx/.gimp-2.6/plug-ins/color_balance_2.py", line 58, in color_balance_2
if (x[3]==2):
UnboundLocalError: local variable 'x' referenced before assignment

I corrected some bugs and uploaded it as version 0.2, try it, it should be ok now.

Unfortunately I can't replicate the above error in my Gimp. Can you give me more details? Do you have the numbers you have chosen in the sliders?

Do you have Windows or Linux or otherwise? Have you checked other python scripts showing correctly the gui and working ok? If yes skip all the text below.

Just to be sure if you have Windows, do you have installed Python 2.6.x, PyCairo, PyGObject and PyGtk along with Gimp in which you checked during installation the python support?

I installed the newest version of the script and after applying the color filters, going back and undoing them, and then re-applying them, I no longer am getting the errors. Not sure if it was a hiccup on my system or if your updates changed anything, but in any event, things look great. Thanks for the nice job ;)

Nice to know it works and you liked it.

Take care,
John

Subscribe to Comments for "Color Balance 2"