Gimp-Forum.net
Problem with correct colours in python script - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: Extending the GIMP (https://www.gimp-forum.net/Forum-Extending-the-GIMP)
+---- Forum: Scripting questions (https://www.gimp-forum.net/Forum-Scripting-questions)
+---- Thread: Problem with correct colours in python script (/Thread-Problem-with-correct-colours-in-python-script)

Pages: 1 2


RE: Problem with correct colours in python script - david - 12-07-2021

This is a real mystery!

I have also made the lower two layers invisible to get the colour-picker readings, or changed the Tone layer to Normal - both give the exact same results.

Thanks for your efforts.

Problem solved!!!

The problem was caused by a strange entry in my contextrc file - (opacity 0.55999999999999994). Where this came from or how it was created is anybodies guess!

Many thanks to programmer_ceds and Ofnuts for their help.


RE: Problem with correct colours in python script - programmer_ceds - 12-07-2021

(12-07-2021, 03:17 PM)david Wrote: This is a real mystery!

I have also made the lower two layers invisible to get the colour-picker readings, or changed the Tone layer to Normal - both give the exact same results.

Thanks for your efforts.

Problem solved!!!

The problem was caused by a strange entry in my contextrc file - (opacity 0.55999999999999994). Where this came from or how it was created is anybodies guess!

Many thanks to programmer_ceds and Ofnuts for their help.

It had to be something like that - pleased you found it and posted the solution.


RE: Problem with correct colours in python script - Ofnuts - 12-08-2021

Works for me:

[attachment=7209]

You can see in the pointer dialog that the color for the Tone layer is (211,66,20) as defined in your script (note that "Sample merged" is unchecked). I also get that very value if I use the Color picker.

So how do you determine the color of the Tone layer?