Colorizing

XnConvert Multi Platform - Windows, MacOSX, Linux
Post Reply
testperson
Posts: 6
Joined: Thu Jul 30, 2020 3:59 pm

Colorizing

Post 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 147 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
User avatar
XnTriq
Moderator & Librarian
Posts: 5708
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Colorizing

Post 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
testperson
Posts: 6
Joined: Thu Jul 30, 2020 3:59 pm

Re: Colorizing

Post 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
User avatar
XnTriq
Moderator & Librarian
Posts: 5708
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Colorizing

Post 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 111 times
Post Reply