Live data from Hacker News

Different browsers see different colors

mux.com

41–50 of 88 posts

Re: Different browsers see different colors

#41
Open firefox tickets:

[meta] Proper colorspace support and color rendering for video playback https://bugzilla.mozilla.org/show_bug.cgi?id=1494381

Properly support ICC v4 profiles and enable it https://bugzilla.mozilla.org/show_bug.cgi?id=1500737

And many more https://bugzilla.mozilla.org/buglist.cgi?quicksearch=color+m...

Re: Different browsers see different colors

#42
post #37
post #3

(Mux founder here, but adding some additional community bits to the conversation) Probably unsurprisingly, the (honestly absurd world of) color is a pretty consistent topic among video engineers. Color theory is one of those areas that people working directly with it see it as a completely unsolved problem, and everyone else largely takes it for granted. This is a small sample size, but these are all talks just from…

> Project leaders from Ffmpeg, Google, Mozilla, Microsoft (and probably Nvidia and AMD) need to all get together and decide on a single method. Speaking non-officially as a browser implementer, VUI isn't always reliable as a source of color, both because the encoders don't always know, and the decoders don't always extract it reliably. The container is a more reliable place to put it (eg. MP4 'colr' box). Browsers do…

This is one place the ISOBMFF spec really screwed up, in my opinion. They should have included semantics for the colr box, i.e. which takes precedence.

Intead we get: "Colour information may be supplied in one or more ColourInformationBoxes placed in a VisualSampleEntry. These should be placed in order in the sample entry starting with the most accurate (and potentially the most difficult to process), in progression to the least. These are advisory and concern rendering and colour conversion, and there is no normative behaviour associated with them; a reader may choose to use the most suitable."

Re: Different browsers see different colors

#43

Screens also display colours differently. Trying to get the perfect colour is futile in the same way trying to get pixel perfect web designs is.

These issues are much less about wanting the color that shows up on the user’s screen to precisely match the color the designer intended, and far more about making sure that if you send the same color to display on the same screen via PNG, WEBM, WebGL and CSS, that they should end up looking the same.

If you’ve got an embedded video that has inter titles whose background color is the same corporate red as your webpage header, you should be able to get the pixels to be the same color, right?

Re: Different browsers see different colors

#44

Earlier quoted context omitted.

That’s when you’re talking about color production (how the artist/content creator intends a specific visual image to be perceived). Color reproduction is 100% an engineering thing about wavelengths. To my knowledge monitors do indeed change the wavelength. Sure it’s several separate colored emitters, but using constructive and destructive interference to generate a wavelength doesn’t take anything away from it. There…

No. Displays make (relatively) sharp peak emissions at one wavelength. We blend their relative intensities to trick our mind into thinking it's seeing the wavelength in between those three spectral peaks. All the colors we can see are from the spectral response of our three cones (hence why we use three spectral emission lines). We simply cannot tell the difference between magenta and red+blue. The actual photons are…

> Displays make (relatively) sharp peak emissions at one wavelength.

Even microLED spikes are tens of nm wide.[1] Calling that "one wavelength" seems problematic, given all the confusion here today, and in TFA, between wavelength and spectrum and perceptual color.

[1] https://www.researchgate.net/figure/a-Measured-RGB-red-green...

Re: Different browsers see different colors

#45
> Most people know some basics of color theory. [...] And many people know that specific colors are really just wavelengths in the electromagnetic spectrum. [...] There are many systems involved to turn an RGB triplet value into a specific wavelength of light.

A 5-year old asks you "The Sun is a big hot ball! What color is the ball?". What do you tell them? They ask "And sunlight?" You say?

Most first-tier astronomy graduate students simply get Sun color wrong. A widespread misconception, perhaps first learned in Kindergarten, then reinforced by incorrect textbooks, persisting unintegrated into grad school. But more interesting here, is that first-tier non-astronomy physical-sciences graduate students often answer with some variation on "it doesn't have a color; it's rainbow color".

Confusing wavelength and spectrum and optical color. As in TFA, and discussion here. So I suggest very few people have a firm grasp on even core basics of color theory.

OT (from an email draft in my other window): What if those students had instead learned Sun color correctly in Kindergarten? How might it then have been used over the years, to teach other topics better? For example, color is often taught preK-1. So how might color be better taught, with improved conceptions, progressions, and interactives, building in part on this firmer grasp of Sun color?

Re: Different browsers see different colors

#46
post #26

> And many people know that specific colors are really just wavelengths in the electromagnetic spectrum. Colors that can be stimulated using a single wavelength are spectral colors, which are only a small subset of perceptible colors. In the CIE xy model, spectral colors are on the curved boundary, while the straight boundary is the line of purples - impossible colors. Edit: And because CIE XYZ is used as a sort of u…

Apple's AVFoundation is color managed: https://developer.apple.com/library/archive/technotes/tn2227... I would hope that similar frameworks on Windows and Linux distributions are too.

There are for Windows, too. I don't know about Linux. The catch is that for really exact color work, you have to calibrate and tune for your computer/OS/video card/monitor combination, and check the calibration against a known standard periodically. It's a bit of pain.

Re: Different browsers see different colors

#47

> Most people know some basics of color theory. [...] And many people know that specific colors are really just wavelengths in the electromagnetic spectrum. [...] There are many systems involved to turn an RGB triplet value into a specific wavelength of light. A 5-year old asks you "The Sun is a big hot ball! What color is the ball?". What do you tell them? They ask "And sunlight?" You say? Most first-tier astronomy…

I don't even know what the confusion is. Is the sun not white? It looks white.

Re: Different browsers see different colors

#49

> Most people know some basics of color theory. [...] And many people know that specific colors are really just wavelengths in the electromagnetic spectrum. [...] There are many systems involved to turn an RGB triplet value into a specific wavelength of light. A 5-year old asks you "The Sun is a big hot ball! What color is the ball?". What do you tell them? They ask "And sunlight?" You say? Most first-tier astronomy…

I don't even know what the confusion is. Is the sun not white? It looks white.

Interesting related fact: Kids in the west usually draw the sun yellow, but in Japan, they draw it red.

Re: Different browsers see different colors

#50
post #6

Earlier quoted context omitted.

On my Samsung Note 8, photos are rendered with very different colors in email previews vs if you download then view them, the email preview shows the colors as being very blown out. Color spaces are hard yo.

Some smartphones have a feature to "enhance" the colours automatically. You should check if you have such a feature enabled.

Additional note, this only happens with photos sent from an Iphone. :-D

All modern phones have some sort of friendly color space selector, this particular Samsung is set to be rather neutral. The interesting part is how dramatically different the preview in gmail is vs the photos app. My guess is Gmail is just doing something horribly wrong with the attached color profile in the photo.

Post reply on HN