woltapp/blurhash
View on GitHub ↗ ★ 17,083 C
A very compact representation of a placeholder for an image.
8 mentions on Hacker News by 6 people: 3 stories, 5 comments · first 2020-02-20 · latest 2022-11-04
20082026
-
The amount of work it takes to decode an image is incredibly tiny by today's standards: https://github.com/woltapp/blurhash/blob/master/C/decode.c
comment by ajconway · 2022-11-04 · in Blurhash: A compact representation of a placeholder for an image -
…component, and a bunch of waves that make up the detail of the image, referred to as AC components. https://github.com/woltapp/blurhash/blob/master/Algorithm.md
comment by DagAgren · 2020-02-20 · in BlurHash: Algorithm to generate compact representation of an image placeholder -
…main author of this. Also make sure to check out the README on Github for more technical details! https://github.com/woltapp/blurhash
comment by DagAgren · 2020-02-20 · in BlurHash: Algorithm to generate compact representation of an image placeholder -
That choice is explained in the README: https://github.com/woltapp/blurhash (83 is about as many safe characters as you can reasonably find, and it allows some nice ways of packing values together.)
comment by DagAgren · 2020-02-20 · in BlurHash: Algorithm to generate compact representation of an image placeholder -
They mention it's a custom version of base83: https://github.com/woltapp/blurhash/blob/master/Algorithm.md... With this charset: 0123456789ABCDEFGHIJKLMNOPQ RSTUVWXYZabcdefghijklmnopqr stuvwxyz#$%*+,-.:;=@[]^_{|}~. I imagine you could…
comment by tyingq · 2020-02-20 · in BlurHash: Algorithm to generate compact representation of an image placeholder