TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

HDR QR Code

308 pointsby fdbalmost 2 years ago

33 comments

marricksalmost 2 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.
评论 #36389267 未加载
评论 #36388250 未加载
评论 #36388083 未加载
eruralmost 2 years ago
Absolutely love reading about such practical little hacks. Really brings back the old excitement that got me into computer science.<p>Also given how prevalent the issue of QR code brightness is for many use cases this could actually prove useful.
评论 #36385680 未加载
scastielalmost 2 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…
评论 #36389444 未加载
评论 #36386996 未加载
评论 #36387698 未加载
评论 #36390775 未加载
评论 #36387993 未加载
planedealmost 2 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.
评论 #36390521 未加载
评论 #36389966 未加载
评论 #36389847 未加载
dagmxalmost 2 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?<p><a href="https:&#x2F;&#x2F;webkit.org&#x2F;blog&#x2F;10042&#x2F;wide-gamut-color-in-css-with-display-p3&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;webkit.org&#x2F;blog&#x2F;10042&#x2F;wide-gamut-color-in-css-with-d...</a><p>I might be wrong however.
评论 #36388989 未加载
评论 #36389206 未加载
thih9almost 2 years ago
As with all hacks, the risk of breaking other features, especially accessibility, increases.<p>I’ve noticed that you cannot long press the brighter code to read it.<p>This works on the regular code next to it (tested in safari mobile).
评论 #36388560 未加载
评论 #36389469 未加载
temporallobealmost 2 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.
lbayesalmost 2 years ago
Both seem to work fine when I point my (aging) Pixel 5 at them rendered on my Asus laptop screen.<p>I&#x27;m assuming there&#x27;s some problem with screen-rendered QR codes that this solves, but my quick google search mostly just resulted in listicle spam.<p>What&#x27;s the problem this solves?
评论 #36385767 未加载
评论 #36386304 未加载
stavrosalmost 2 years ago
I will never understand HDR. A friend has tried to explain it many times to me, but I always fail to get it. A display just has so much dynamic range (from full light off to full light on). HDR can&#x27;t give you more range, so what does it actually do?<p>The only thing I&#x27;ve seen it do is override my brightness setting to make my screen go to full brightness when I&#x27;ve set it lower.
评论 #36386972 未加载
评论 #36386069 未加载
评论 #36386139 未加载
评论 #36387498 未加载
评论 #36385992 未加载
评论 #36386015 未加载
评论 #36387954 未加载
评论 #36390274 未加载
评论 #36386029 未加载
评论 #36416621 未加载
bhaneyalmost 2 years ago
I&#x27;m sitting in front of both a 2012 Macbook Pro (no HDR) and a 2020 M1 Macbook Air (HDR), and I&#x27;m expectedly seeing the difference in brightness between the QR codes on the newish Air, while they look the same on the old Pro. But what&#x27;s interesting is that both of the QR codes on the old Pro look just as bright as the big bright HDR QR code on the new Air.<p>Basically, the only observable difference I&#x27;m noticing between the two laptops is that <i>the non-HDR QR code looks dimmer</i> on the HDR-supporting machine. I&#x27;m sure this is some kind of optical illusion, but it&#x27;s certainly not doing much to make me value the existence of HDR.
评论 #36387163 未加载
评论 #36387510 未加载
dmitrygralmost 2 years ago
I <i>CANNOT</i> wait for HDR-bright ads on random websites &#x2F;s
sumitgtalmost 2 years ago
Given the popularity of QR codes now, I wonder if it makes sense for it to just be supported directly in HTML as a type of element.<p>&lt;qrcode&gt;Some content!&lt;&#x2F;qrcode&gt;<p>With necessary browser&#x2F;device level support to automatically do this HDR thing.
评论 #36390494 未加载
bruhsfx2almost 2 years ago
Safari also apply “HDR” to CSS filter: brightness() with value greater than 1. Instead of the over-exposure effect, this portion of the screen will be brighter.<p>You must have an HDR or EDR-capable screen and there must be an HDR video playing to activate the HDR context (can be &lt;video&gt; playing somewhere in a webpage).<p>Lunar app&#x27;s website used this trick! Check it out. <a href="https:&#x2F;&#x2F;lunar.fyi&#x2F;#xdr" rel="nofollow noreferrer">https:&#x2F;&#x2F;lunar.fyi&#x2F;#xdr</a>
cgijoealmost 2 years ago
See also: <a href="https:&#x2F;&#x2F;kidi.ng&#x2F;wanna-see-a-whiter-white&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;kidi.ng&#x2F;wanna-see-a-whiter-white&#x2F;</a>
coltonweaveralmost 2 years ago
Firefox users: This won&#x27;t render in HDR in FF. Open it in Safari if you want to see it.
评论 #36388966 未加载
评论 #36386216 未加载
londons_explorealmost 2 years ago
What a mess that the only way to display a bright white colour from a web page is to use a single frame video!!
blensoralmost 2 years ago
Does that only work with white or with other colors in general?<p>I would not have thought that QR codes could become a hot topic in 2023 but combining that with the new Stable Diffusion Controlnet generated QR codes [1] could actually be pretty interesting<p>[1] <a href="https:&#x2F;&#x2F;www.linkedin.com&#x2F;posts&#x2F;gschwandtner-michael_qr-stablediffusion-aiart-activity-7075411631110766592-tj-a" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.linkedin.com&#x2F;posts&#x2F;gschwandtner-michael_qr-stabl...</a>
StrangeATractoralmost 2 years ago
How do you even represent HDR colors? I&#x27;ve tried Googling this and I can never really find an answer. Is it basically just eight hex digits instead of six?
评论 #36389082 未加载
评论 #36387344 未加载
评论 #36387334 未加载
评论 #36387374 未加载
bawolffalmost 2 years ago
I wonder why you couldn&#x27;t just add a colour profile to a png file to shift the colours to this super white colour.<p>For that matter i thought avif supported HDR images.
评论 #36390016 未加载
评论 #36389063 未加载
hilbert42almost 2 years ago
Android here. Vivaldi shows the large one as a white video without detail, all other browsers show both QR codes the same.
thadkalmost 2 years ago
Asked it before and ask it again: how far are we from NYT or WSJ using this for d3 infoviz features?
Xeagoalmost 2 years ago
Viewing this page (with the HDR element) resets my cursor to the bottom left. Also triggers this behavior when changing brightness whilst the HDR element is visible on screen. Anyone have a similar experience? On MacBook Air (M1, 2020).
perryizgr8almost 2 years ago
Why does this work only on Apple devices. My android phone has a super bright screen (~1000 nits for HDR content). It supports HDR photos and videos as far as I can tell. But both QR codes appear to be the same brightness.
评论 #36389631 未加载
Jaxanalmost 2 years ago
This is pretty neat. I tried the &quot;Digital Colour Meter&quot; app on MacOS, but both whites shows exactly the same values and it is also impossible to take a screenshot of. So I wonder how this works in the OS.
msoadalmost 2 years ago
Instagram abuses HDR vide for some of the icons in Reels if you pay attention.
gruturoalmost 2 years ago
Doesn&#x27;t seem to work (which I see as a positive) for me on an iPhone 13 Pro Max, using native Safari, low power mode is off as indicated. I guess I have another reason to thank Lockdown mode?
creativenoloalmost 2 years ago
Neat trick. For one device I had to reduce contrast on the QR codes to yield an increase in detection. I assumed too much contrast was less desirable for the optics.
qbanealmost 2 years ago
It&#x27;s when I realize that you cannot simply have the screen (of Apple devices at least) display &quot;white&quot; by demanding a color &quot;white&quot;.
评论 #36387303 未加载
schappimalmost 2 years ago
Does not seem to work on Pro XDR in Safari or Chrome (I guess it hasn&#x27;t to really be internal display).
xmdxalmost 2 years ago
Cool, only ever seen HDR on a large screen and the brightness is not as striking as this.
BonoboIOalmost 2 years ago
Neat trick. I m still thinking about a use case for me personally.<p>Works on my iPad Pro 2020 iOS14
vardumpalmost 2 years ago
Oh my god that hurts my eyes! That was <i>really</i> bright. MBP M2 16&quot;.
评论 #36389248 未加载
danbrucalmost 2 years ago
Is seven times brighter in terms of light output or perceived brightness?