Skip to content

Agraphie/blurhash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

fcc113a · Apr 22, 2022

History

7 Commits
Feb 28, 2020
Feb 28, 2020
Feb 25, 2020
Feb 25, 2020
Feb 25, 2020
Feb 25, 2020
Feb 25, 2020
Feb 25, 2020
Apr 22, 2022
Feb 25, 2020
Apr 22, 2022
Apr 22, 2022

Repository files navigation

blurhash

This library is a Blurhash algorithm implementation for dart. For more information or other implementations go to https://github.com/woltapp/blurhash.

Instead of showing boring placeholders, just show an idea of the picture while the actual picture is loading! Images can be converted to Base83 on your backend or while uploading in the frontend. Afterwards, you can send the Base83 string to your frontend. The client can then decode the Base83 string and draw the blurred image.

Original Blurred
Image original original

Based on the hash q.NK3Mt7WrofayazbHj[l.TkCWBWCj[j@f6azIUWXjZWBWCjsoLayM{ofazayjZa#Wqj[kCWBj[bHWXj[jZWVt7WCs:ofa}axjZay

Example usage

See the example in example_main

original

Getting started

Include the library in your project. Then call the decoder with a valid Base83 string

Image.memory(blurhash.Decoder.decode(hash, 300, 200))

Credits go to Dag Ågren / Wolt for this idea.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages