Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script for Image color Temperature
#1
Hello there,

I am using Gimp 2.9.3 downloaded from http://www.partha.com/ and I am looking for a script to change the Color Temp of a layer. I have founded this script "colortemp" and installed it but unfortunately it's not working with my version of Gimp.

Error Messages are:

Error: eval: unbound variable: RED-LUT

Plug-In 'Convert Color Temperature' left image undo in inconsistent state, closing open undo groups.

The window of this script is:
[Image: gimp-colortemp.jpg]
Script URL: http://registry.gimp.org/node/73


My goal is to get this result which is a photo of my screen :
[Image: 367280Testtemperaturenuages.jpg]
(Left with Color Temperature changed - Right side: Original colors)

I have noticed that some of my artworks are more beautiful with the soft SunsetScreen which change the colour temperature of my screen on night :
[Image: SunsetScreen_2.png]

I have noticed the new option Color Temperature of Gimp 2.9.3 but the result is all the time too dark.

Thanks,
Vincent.
Reply
#2
Ok guys, this script is working fine with Gimp 2.8.14 and I can get exactly what I was expected for. The same result of the SunsetScreen soft.

But I can't do it to a specific layer as I can't make a .xcf file with Gimp 2.9.x and open it with Gimp 2.8.x.

So, my question is, how to make this script (http://registry.gimp.org/node/73) works with Gimp 2.9.X which is the main version of Gimp I use?

Thanks again,
Vincent.
Reply
#3
1. This in reply to first post

You could always try and ask the script author for an update - look at the top of the script for the contact.

Otherwise - are you really using Gimp 2.9.3? or 2.9.5 If the former you should get the latest and greatest from Partha.

G'mic looks to have a close match to your example, looks a bit simplistic but this in automode. screenshot http://i.imgur.com/yzjm9lG.jpg

Using Gimp 2.9.5 (linux) and gimp-gmic2

2. 
Quote:...But I can't do it to a specific layer as I can't make a .xcf file with Gimp 2.9.x and open it with Gimp 2.8.x.

Does the Partha version have the compatibility option in the save dialog? It should have.

   
Reply
#4
Yes, I should try to contact the author of this script.

I didn't thought about G'mic because there are I think too many stuff and it's not easy to check all of them to see if there will be the expected result.

Indeed, I could try the Color->Temperature of G'mic but without the same result of SunsetScreen, and yet even if I told I could get the same result with the script colortemp, not exactly actually.

I have to check again, and it's not easy. I have to check with and without SunsetScreen each time. Wink

Maybe I should try to get something I like with G'mic instead of trying to get what I get exactly with SunsetScreen activated...

Thanks again,
Vincent.
Reply
#5
@ LondonUK371 I case you ever come back

I confess, I know didley-poop about Scheme. I do not know why "colour"-LUT does not return a value in Gimp-2.9.5 It might be a bug.

A little gentle alteration and attached might work for you. Remember to unzip it. 
If your Partha Gimp 2.9.5 runs with --pdb-compat-mode=off then expect to see 'deprecated procedure warnings' However you should still get a result.


Attached Files
.zip   colortemp.scm.zip (Size: 3.6 KB / Downloads: 331)
Reply
#6
(02-22-2017, 09:54 AM)rich2005 Wrote: I confess, I know didley-poop about Scheme. I do not know why "colour"-LUT does not return a value in Gimp-2.9.5 It might be a bug.

RED-LUT etc are constants from beyond the dawn of time and had been deprecated before GIMP 2.6 in favour of HISTOGRAM-RED, HISTOGRAM-GREEN and HISTOGRAM-BLUE
Reply
#7
Kevin - Thanks for the clarification. I suspect that there be more than a few old scripts and plugins that will fall by the wayside even with a compatibility mode.

If the OP can find a suitable equivalent g'mic filter then there is always the option to save the filter and settings as a 'fave' saving time searching and entering any variables.
Reply
#8
(02-22-2017, 09:54 AM)rich2005 Wrote: @ LondonUK371 I case you ever come back

I confess, I know didley-poop about Scheme. I do not know why "colour"-LUT does not return a value in Gimp-2.9.5 It might be a bug.

A little gentle alteration and attached might work for you. Remember to unzip it. 
If your Partha Gimp 2.9.5 runs with --pdb-compat-mode=off then expect to see 'deprecated procedure warnings' However you should still get a result.

Yes I'm still there Wink

Thanks a million for the submit of the corrected script. It's working like a charm with my version of Gimp 2.9.3.

As you mentioned, I have the 2 warnings you're talking about:
Code:
WARNING: Plug-In "script-fu.exe"
(C:\Program Files\Gimp-2.9\lib\gimp\2.0\plug-ins\script-fu.exe)
called deprecated procedure 'gimp-curves-explicit'.
It should call 'gimp-drawable-curves-explicit' instead!


Code:
WARNING: Plug-In "script-fu.exe"
(C:\Program Files\Gimp-2.9\lib\gimp\2.0\plug-ins\script-fu.exe)
called deprecated procedure 'gimp-hue-saturation'.
It should call 'gimp-drawable-hue-saturation' instead!

But it's working very fine!

Thanks again for your share Wink

I wanted to submit this forum thread on a comment of http://registry.gimp.org/node/73 but unfortunately I can't create an account:
[Image: 588520Gimporgerror.jpg]
If someone has already an account on http://registry.gimp.org/ to share rich2005 scm update, that would be nice.

Regards,
Vincent.
Reply
#9
You can also contact the author, see http://luca.dealfaro.org/photography/Colortemp

However, since he hasn't updated the page since 2009, maybe he is no longer interested. But anyway I suspect that the right script fom 2.9 could be very different (16/32 bit processing, and "Linear light").
Reply
#10
(02-22-2017, 03:27 PM)Ofnuts Wrote: You can also contact the author, see http://luca.dealfaro.org/photography/Colortemp

However, since he hasn't updated the page since 2009, maybe he is no longer interested. But anyway I suspect that the right script fom 2.9 could be very different (16/32 bit processing, and "Linear light").

Yes, I sent him an email. Maybe he will update his script according to the upload of rich2005.
Reply


Forum Jump: