Toinane / colorpicker

A mininal but complete colorpicker desktop app
https://colorpicker.fr
GNU General Public License v3.0
1.59k stars 119 forks source link

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

Open patrickhlauke opened 5 years ago

patrickhlauke commented 5 years ago

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

Toinane commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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

patrickhlauke commented 5 years ago

excellent!