No description
Find a file
2026-01-30 00:49:28 +00:00
.github/workflows Rename main branch 2026-01-30 00:20:29 +00:00
base83 Fuzz test and subsequent fixes 2026-01-29 23:55:17 +00:00
fixtures Add DALL-E test fixture image (1024x uncompressed PNG) 2022-11-09 10:40:41 +00:00
testdata/fuzz Fuzz test and subsequent fixes 2026-01-29 23:55:17 +00:00
decode.go Fuzz test and subsequent fixes 2026-01-29 23:55:17 +00:00
decode_test.go Fuzz test and subsequent fixes 2026-01-29 23:55:17 +00:00
encode.go Replace Pow(..., 0.5) with Sqrt 2026-01-29 23:38:13 +00:00
encode_test.go nolint:errcheck on defered closes 2026-01-30 00:49:28 +00:00
error.go Cleanup errors 2026-01-29 23:03:52 +00:00
fixtures_test.go Add DALL-E test fixture image (1024x uncompressed PNG) 2022-11-09 10:40:41 +00:00
fuzz_test.go Fuzz test and subsequent fixes 2026-01-29 23:55:17 +00:00
go.mod Remove test-only assertion dependency 2026-01-29 22:54:40 +00:00
go.sum Remove test-only assertion dependency 2026-01-29 22:54:40 +00:00
LICENSE Initial commit (Decode support only) 2019-05-09 01:11:27 +01:00
README.md Rename main branch 2026-01-30 00:20:29 +00:00
srgb_lut.go cleanup 2026-01-29 23:20:55 +00:00
srgb_lut_generator.go nolint:errcheck on defered closes 2026-01-30 00:49:28 +00:00
util.go Replace Pow(..., 0.5) with Sqrt 2026-01-29 23:38:13 +00:00
util_test.go cleanup 2026-01-29 23:20:55 +00:00

go-blurhash Go Reference GitHub tag license Go Report Card codecov

A pure Go implementation of Blurhash. The API is stable, however the hashing function in either direction may not be.

Blurhash Demo

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/Decoder APIs for zero-allocation batch processing

Contributing

Issues, feature requests or improvements welcome!

Licence

This project is licensed under the MIT License.