News for hackers. Stuff that matters.
Re:GitHub Dark Mode is too Dark by Jap2-0 on Saturday December 12, 2020 @06:05PM (#25402651)
> The low contrast, colorful text will not compress as accurately as light mode

Kind of off topic, but I've always wondered why this is an issue. If I invert the colors, will those parts of the image suddenly compress just fine? Is it something to do with human perception of dark colors (like how many compression algorithms use more detail in various characteristics we're more sensitive to, such as brightness, as opposed to color)? That wouldn't make sense to me, as it seems to be a pretty obvious visual flaw.

Re:GitHub Dark Mode is too Dark by blunte on Saturday December 12, 2020 @07:06PM (#25403020)
This dark mode topic came up in the past, and I commented similarly. One (typically knowledgeable) HN reader replied to my comment with an explanation about this. I would have to really dig to find it though...

I'm not sure, but I suspect that in general, dark mode syntax highlighted (highlit?) text is on average lower contrast than syntax highlighted light mode text. That could affect compression behaviors, perhaps.