7 ms·
Absolutely love reading about such practical little hacks. Really brings back the old excitement that got me into computer science. Also given how prevalent th
by erur 3y 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 3y agoSorry 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 3y 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.
- ihuman 3y agoI'm not sure why you're being downvoted when that's exactly what's happening. The QR code comes from the mask-image in the inline-style, not the video.
- aardvark179 3y agoYou also only really need the video to push the browser to do things in HDR. You can’t express a CSS colour way outside the normal range, but blending calculations are not clamped so can be used to get the colour. https://github.com/kiding/wanna-see-a-whiter-white https://github.com/kiding/wanna-see-a-whiter-white was posted here a while ago and demonstrated the technique.
- dolmen 3y agoThe 1.19 KB video file itself has been created "manually" using a video editor. See https://github.com/dtinth/superwhite#creating-the-video https://github.com/dtinth/superwhite#creating-the-video We can expect it is possible to create a much more compact video file with the same features.
- mlyle 3y agoSure, I totally agree with that. Though not too much smaller: there's >500 bytes of required headers in an MP4 file encapsulating video. In any case, that's not what the person I was replying to was talking about.