News for hackers. Stuff that matters.
Re:BlurHash: Algorithm to generate compact representation of... by marcusjt on Thursday February 20, 2020 @11:46AM (#22376348)
I'm surprised this isn't more web focused, i.e. a NodeJS library which encodes an image as a BASE64 data URL which any browser can render immediately while the real image lazy loads
Re:BlurHash: Algorithm to generate compact representation of... by DagAgren on Thursday February 20, 2020 @12:11PM (#22376575)
It's a lot more efficient to do it once, and store it.

Also, it's really simple! Go ahead and create a library for it! The algorithm is tiny, and easily ported, so it's quite fun.

Re:BlurHash: Algorithm to generate compact representation of... by nojvek on Thursday February 20, 2020 @06:17PM (#22379532)
100% agreed. A base64 encode would be a lot more browser friendly. Something like `background-image: url('data:image/jpeg;base64,....')` means you only need the encoder, the browser would decode without any js being needed (which would block initial page render)