News for hackers. Stuff that matters.
Re:BlurHash: Algorithm to generate compact representation of... by BeeOnRope on Thursday February 20, 2020 @10:04AM (#22375514)
The examples discussed seem to assume a dynamic site where you load the images (and the blurha placeholder) from a database, but how easy would this be to use for a static site with large images, perhaps embedding the blurha directly in the HTML?
Re:BlurHash: Algorithm to generate compact representation of... by sp332 on Thursday February 20, 2020 @11:23AM (#22376164)
You could put the hash in a custom HTML attribute, and have the JS load it from there.

<canvas width="100px" height="100px" imgsrc="hirez.jpg" blurhash="abcd..." />

Re:BlurHash: Algorithm to generate compact representation of... by DagAgren on Thursday February 20, 2020 @10:21AM (#22375646)
Should work fine, if you integrate it into your toolchain somehow.