Page 1 of 1

Colorizing

Posted: Sat Jun 12, 2021 1:50 am
by testperson
Hi,

I'm a bit lost. I have a bunch of pictures with white numbers, surrounded by transparency.
tk.png
tk.png (1.65 KiB) Viewed 1382 times
I try to colorize these numbers with the HLS action.
The colors I try to get are #949400, #b4b4b4 and #8b8b8b
So I googled for the HLS values of these colors and for #949400 for example I found
Hue 60, Lightness -50 and Saturation 100
But using these values I get a different color: #ffff00
What do I do wrong?

Thank you in advance

Re: Colorizing

Posted: Sun Jun 13, 2021 6:30 pm
by XnTriq
I think you've found a bug, testperson.

As a workaround, you could tweak the Color balance:
  • #949400 = R -107 | G -107 | B -255
  • #8b8b8b = R -116 | G -116 | B -116
  • #b4b4b4 = R   -75 | G   -75 | B   -75

Re: Colorizing

Posted: Sun Jun 13, 2021 10:40 pm
by testperson
Ah okay, thank you :)
#949400 = R -107 | G -107 | B -255
But how do I get Blue -255 if the intervall is just from -127 to 127 ?

And by the way how did you get these values? Because Google says 148, 148, 0 for #949400

Re: Colorizing

Posted: Mon Jun 14, 2021 2:15 am
by XnTriq
testperson wrote: Sun Jun 13, 2021 10:40 pmBut how do I get Blue -255 if the intervall is just from -127 to 127 ?
You're right :-?

testperson wrote: Sun Jun 13, 2021 10:40 pmAnd by the way how did you get these values? Because Google says 148, 148, 0 for #949400
I removed all ancillary chunks including the ICC profile embedded in tk.png with PngOptimizer and had Just Color Picker running while moving the sliders for R/G/B in XnView MP (ImageAdjustEnhance colors…).

p170386.png
p170386.png (1.76 KiB) Viewed 1346 times