colorpicker icon indicating copy to clipboard operation
colorpicker copied to clipboard

Color picker and browsers/apps that do color management / profiling

Open patrickhlauke opened this issue 7 years ago • 4 comments

Some browsers (Chrome on Windows, Chrome and Safari on macOS) color-manage CSS values, so what they display is subtly different (depending on monitor / color profile) from the values defined in CSS.

Chrome on Windows, on my machine, showing #00f as #3800ff, which is what color picker then picks up

Am I right in thinking there's likely no way to work around this?

x-ref https://github.com/ThePacielloGroup/CCAe/issues/76

patrickhlauke avatar Oct 21 '18 08:10 patrickhlauke

Yes It's a problem I can't resolve easely for now.. I suppose robotjs (the dependency I use to get color from picker) isn't 100% accurate in somes cases. I will update my fork to the latest version of robotjs and I'll check if I can make a thing for this. But yeah for now we have no way to work around this.

Toinane avatar Oct 21 '18 12:10 Toinane

I may be getting a little ahead of myself, but I'm testing Go, and there is "robotGo" which also allows you to pick up some colors. So maybe I'll do a Go implementation to get the colors back. To see if this will solve the problem, although I do not think so.

Otherwise I updated my RobotJS repo, I haven't tested it yet if it had changed anything. From what I saw in the changes I got back, it doesn't change anything.

Toinane avatar Oct 26 '18 07:10 Toinane

I come with some news @patrickhlauke. I've tested with the latest update of robotjs on windows (firefox, chrome, edge) and I don't have any problem to get the good color. I haven't tested on macOS for now

Toinane avatar Nov 08 '18 00:11 Toinane

excellent!

patrickhlauke avatar Nov 08 '18 00:11 patrickhlauke