Readit News logoReadit News
marricks · 3 years ago
I love how, if you do view it accurately, it just makes every other white look washed out and grey in comparison. Our visual system is just one big comparison machine.
petercooper · 3 years ago
It's really striking if you have a projector. Before you turn on a projector in a room that isn't dark, a white wall looks pretty white. Once the projector is on, that "pretty white" wall is now playing the role of black in the projected scene.
greenimpala · 3 years ago
That's almost so obvious that I never thought of that :D
grishka · 3 years ago
And the color brown doesn't exist on its own. It's orange with context.
blep-arsh · 3 years ago
HDR content also seems to force the "regular" white to be less bright on an iPad with a regular SDR IPS display.
deergomoo · 3 years ago
This is actually super interesting: for displays that can get bright enough for HDR content, but do not have self-illuminated pixels/local dimming zones/any other mechanism to display very dark content alongside very bright (like, say, most modern iPad and Mac screens), this is exactly what is happening.

macOS/iPadOS cranks the backlight brightness up but then adds a black filter to the non-bright content to sim it back to “normal” levels.

https://prolost.com/blog/edr

mavhc · 3 years ago
Outside sunlight is 1000x brighter than inside light
pavlov · 3 years ago
Next time you see a scene in a movie where people enter a house and you can see both the interior and exterior, think about the 1000x ratio and how much artificial light was needed inside the house to balance the lighting in the shot. (Assuming it's a real sunlit exterior and not a sound stage, of course.)
8n4vidtmkvmk · 3 years ago
I'm reminded of this every summer when I go indoors or outdoors.
erur · 3 years ago
Absolutely love reading about such practical little hacks. Really brings back the old excitement that got me into computer science.

Also given how prevalent the issue of QR code brightness is for many use cases this could actually prove useful.

erur · 3 years ago
Sorry for self replying but I just had a look at the repo and it's definitely worth fully automating this. A js/python snippet converting pngs to superwhite video frames should be fairly easy to implement.
mlyle · 3 years ago
> A js/python snippet converting pngs to superwhite video frames should be fairly easy to implement.

??? It's just an all-white video, with an overlay of black QR code applied by CSS. It's already "fully automated."

Both (the video and the overlay) are small enough to be base64'd right into the HTML.

scastiel · 3 years ago
Wow that’s impressive… and dangerous I guess? I can’t see how this won’t become an antipattern, especially to display ads on websites…
jonsolo · 3 years ago
It’s already in use at washingtonpost.com. About 4-6 months ago (IIRC) they had some superbright inline ads that made me doubt my eyes - I couldn’t understand how they were so vivid. Now I know how they did that.

Dead Comment

hamasho · 3 years ago
This comment makes me wonder why ad companies haven't already used this to show ads. They are notorious for using any technology to grab users' attentions.
nomel · 3 years ago
I sincerely believe we are witnessing the birth of bright ads, and some eventual “block third party HDR” browser option.
fodkodrasz · 3 years ago
It is already an antipattern, it hurt my eye as it was too bright.

Once again webdevs creating another UX nightmare.

3nt3 · 3 years ago
it's useful for QR codes though so they can actually be scanned somewhat reliably from a phone screen
xg15 · 3 years ago
It works by embedding a video element with a one-frame mp4 file. That would technically turn the ad into a "video ad". I can imagine that video ads already have tighter restrictions in ad networks today. At least I'd hope so...
addandsubtract · 3 years ago
HDR content still explodes my M1 MacBook. The cursor jumps into the corner of the screen, triggering expose, so I have to move out of the corner and back into it to undo the explosion. Now the HDR video is as bright as the sun while everything else looks washed out. So I close the HDR content and have expose trigger again. I don't know who's fault this is, but I despise HDR content because of that.
Toutouxc · 3 years ago
Then there's something wrong with your MacBook and maybe you should spend some time troubleshooting..?

Dead Comment

planede · 3 years ago
I think one possibly underused utility of HDR is to have more saturated bright colors in various contexts. I would love a more saturated light blue color for text that is normally available in sRGB, just because #0000ff is too dark and I would like to just crank up its brightness instead of mixing in green and red. Think syntax highlighting or terminal colors.
Asooka · 3 years ago
What you're describing is a more intense (brighter, higher energy) blue, not a more saturated one. For more saturated colours, you need different RGB primaries than the ones defined in sRGB. The DCI-P3 colourspace used in HDR displays is exactly that, offering something halfway between sRGB and Adobe RGB. Of course it pales in comparison to filmic colour spaces like ACEScg, which can represent almost the entire visible gamut.
planede · 3 years ago
Thanks! Maybe I didn't express myself clearly, but what I meant is more saturated "light blue" than what's available in sRGB, with the same brightness. For me #0000ff doesn't qualify as "light blue", so the point of comparison would be something like #aaaaff.
zokier · 3 years ago
> I think one possibly underused utility of HDR is to have more saturated bright colors in various contexts.

Isn't that the sole purpose of HDR!?

planede · 3 years ago
No, I don't think so, as the article demonstrates too. A brighter than #ffffff white is not in any way a saturated color.

You might be thinking of high gamut displays?

yonatan8070 · 3 years ago
I think planede is thinking about expanding the "various contexts" from just videos to general computer color
Savely · 3 years ago
I thought it’s purpose is for me to feel the sunlight looking at my summer photos in December.
LeifCarrotson · 3 years ago
Mixing in green and red is equivalent to brightening #0000FF with added white. Try #1AFFFF, for example, it's a magnificently bright light blue. You've not muddied it with brown as you would have by adding an equal amount of green paint and a tenth of red paint; RGB illumination color spaces don't work that way.
planede · 3 years ago
It still makes it less saturated though and makes it pale blue instead of what it could have been by just really cranking up the light intensity behind that blue subpixel.
dagmx · 3 years ago
Author says that it can’t be represented with css, but I think HDR is supported in Safari within Display P3 I believe, you can give a value higher than 1.0?

https://webkit.org/blog/10042/wide-gamut-color-in-css-with-d...

I might be wrong however.

Kovah · 3 years ago
I was curious and tested this in Safari, but `color(display-p3 1.5 1.5 1.5)` displays the same white as `color(display-p3 1 1 1)` does.
phh · 3 years ago
"HDR" contains multiple components: - Electro-Optical Transfer Function. That's the famous "gamma" of the display which is no longer a gamma - color space (which real-life color does RGB = 100%, 0%, 0% match) - Absolute brightness. There are metadata in the video files that say that RGB=100%, 100%, 100% mean 2000cd/m2 (and gives the average frame brightness like 10%, which helps scales for displays not capable of 2000cd/m2 everywhere) - Increased bit depth

Display-P3 is only the color space (and maybe the EOTF). This video uses the "absolute brightness" feature of HDR to increase brightness.

thih9 · 3 years ago
As with all hacks, the risk of breaking other features, especially accessibility, increases.

I’ve noticed that you cannot long press the brighter code to read it.

This works on the regular code next to it (tested in safari mobile).

lucideer · 3 years ago
They've made the odd choice of placing the QR code as a mask on the video via CSS, rather than positioning a black & transparent image over the video (which would allow long press).

Not sure why they've done this, perhaps something about the HDR approach requires both the black and white to be a part of the same video render.

Also - I'm not sure if it's a browser default or some other website CSS but imo there's no real reason long press shouldn't work on a video anyway... videos need accessibility too.

dtinth · 3 years ago
article author here.

odd choice indeed, I wasn’t thinking clearly when I experimented and wrote the article.

putting a black and transparent image atop the video sounds like a much better idea — i will try it and see if it works. thanks for the suggestion!

schaefer · 3 years ago
Accessibility? on QR Codes? They are read by computers, not people!
temporallobe · 3 years ago
I am on an iPhone 13 and to my surprise I actually saw the HDR QR code displaying way more brightly than the rest of the page, and sure enough when I turned my power saving mode on, it went back to looking like the other non-HDR QR code. Impressive! It will be interesting to see if CSS ever gets full support for it.
lbayes · 3 years ago
Both seem to work fine when I point my (aging) Pixel 5 at them rendered on my Asus laptop screen.

I'm assuming there's some problem with screen-rendered QR codes that this solves, but my quick google search mostly just resulted in listicle spam.

What's the problem this solves?

paranoidrobot · 3 years ago
Probably people who have their screen brightness set to lower levels (automatic or not).

I notice some airline apps and Google Wallet set screen brightness to maximum when you view a boarding pass.

lbayes · 3 years ago
Interesting.

When I look at the two codes side-by-side with normal (full) brightness, the HDR one looks quite a bit brighter. If I dim my screen brightness substantially, the HDR one also gets a lot dimmer. Not sure if this solves that problem, though it could be an issue with my particular screen?

MBCook · 3 years ago
I’ve seen apps do that too.

I may make a difference with laser scanners or other more commodity hardware than smartphone cameras which are pretty amazingly good these days.

aendruk · 3 years ago
Outcompeting glare.