Color spaces are weird.
Posted in Software February 21st, 2021 by dotcomboom

A couple of years ago, I came to notice something that perplexed me.

Under Blink/Chromium-based browsers and Electron-based applications, colors just did not look the same. My laptops, namely, a ThinkPad X220 and X230T, and my mid-2012 MacBook Pro–likely among other devices with Intel HD Graphics–would always give colors a strange saturation boost within the browser. Images wouldn’t look as they appeared in painting programs, and the default blue links would look more purpleish.

As I’ve been working again on my new personal site, this came to my attention once more. I use Edge as my primary browser, and have been using RetroZilla Composer and SharePoint Designer interchangeably for editing. Let me show you the same page in both stock Microsoft Edge (Chromium) and RetroZilla. Notice how on the left, the page has more saturation than on the right?

(Author’s note, this is through a VGA external monitor. However, the effect is the same on the internal LCD.)
(Ignore the link colors being #0000FF on the right, which seems like a Composer-specific quirk.)

If not, then let me give it another pass or two:

Now Lince is becoming almost an alien, poor lad:

Peculiar, huh? It is also across the whole window, including UI elements. To better illustrate, I saved a page with a #0000FF background and used a color picker to check. Under Edge, it’s displayed as #6700FF, while under IE it is #0000FF as expected. You can test this for yourself as well.

Comparison between stock Edge settings and Internet Explorer. Edge displays the page’s background color as #6700FF.
Internet Explorer displaying the background as #0000FF.

I tested Chrome and Vivaldi with the same results. Though, I tested Firefox, and the color was as it should be. I could’ve sworn the same has happened within that as well, but testing it again seems to prove otherwise. I’ll give Mozilla credit where its due.

Internet Explorer and Firefox, both rendering the background as #0000FF.

Where things really get bizarre, however, is how on my parents’ desktop with Intel UHD Graphics 630 (a later generation chip), and my desktop with Nvidia graphics as pictured below, the color is displayed as expected under Edge. No flags have been changed for this screenshot.

Edge passing the #0000FF test on my desktop!

My theory is that Chromium and its descendants respond to the Intel HD Graphics chips’ color profile in some way– either the chip, or possibly some monitor calibration settings from the laptops’ manufacturers. As to why they make this distinction, exactly, I don’t know.

Fortunately, there is a remedy in chrome://flags (or edge://flags, vivaldi://flags, whichever equivalent). I am not aware of a way to apply this tweak through Electron apps which lock that out, but there is a flag to “Force color profile”. Choosing sRGB, the standard color space formulated by Microsoft and HP many moons ago, will make the colors display correctly again.

If anyone knows why this happens, or has had anything similar happen to them, let me know. It’s one of those things I never hear about but still makes me wonder. Additionally, why did we move off of a sRGB default for the Web anyway if it causes these kinds of discrepancies? Shouldn’t HTML colors be rendered just as they are in the markup or stylesheet? And does anyone other than me really even notice?

Chromium on Windows 2000
Posted in Software, ThinkPad T41 February 26th, 2020 by dotcomboom

As a partial followup to my last ThinkPad post, here’s Chromium 34 (from 2014) running on Windows 2000.

It’s not the most ideal for daily use as it’s quite buggy, but it astonishingly does work. If you want to grab a copy, go to this place here run by a nice fellow. No installer, just a zip.

If you don’t have KernelEx on your install, I have that stuff hosted on w2krepo; you’ll want usp51.zip and Windows2000-UURollup-v11-d20141130-x86-ENU (Extended Kernel).7z. I’d suggest to get them installed in that order, as UURollup messed IE stuff up for me before I did install the latter. They’re both very useful updates/patches to have, and the same sdfox7.com site has plenty of software that wouldn’t run on 2000 otherwise, such as Flash 29 (which, unfortunately, I haven’t gotten working as of yet) and a portable version of Firefox 48 (one I have not yet tried).