mirror of
https://github.com/bbrks/go-blurhash
synced 2026-03-12 21:03:45 +00:00
No description
- Go 100%
| .github/workflows | ||
| base83 | ||
| fixtures | ||
| testdata/fuzz | ||
| decode.go | ||
| decode_test.go | ||
| encode.go | ||
| encode_test.go | ||
| error.go | ||
| fixtures_test.go | ||
| fuzz_test.go | ||
| go.mod | ||
| go.sum | ||
| LICENSE | ||
| README.md | ||
| srgb_lut.go | ||
| srgb_lut_generator.go | ||
| util.go | ||
| util_test.go | ||
go-blurhash

A pure Go implementation of Blurhash. The API is stable, however the hashing function in either direction may not be.
Blurhash is an algorithm written by Dag Ågren for Wolt (woltapp/blurhash) that encodes an image into a short (~20-30 byte) ASCII string. When you decode the string back into an image, you get a gradient of colors that represent the original image. This can be useful for scenarios where you want an image placeholder before loading, or even to censor the contents of an image a la Mastodon.
Notable features
- Pure Go with no dependencies
- High performance (as of v1.2)
- Reusable
Encoder/DecoderAPIs for zero-allocation batch processing
Contributing
Issues, feature requests or improvements welcome!
Licence
This project is licensed under the MIT License.
