ThumbHash
An Elixir bridge to the Rust ThumbHash library. See: https://github.com/evanw/thumbhash for original implementation.
Installation
Note: a Rust toolchain is required to compile rust deps.
If available in Hex, the package can be installed
by adding thumb_hash to your list of dependencies in mix.exs:
def deps do
[
{:thumb_hash, "~> 0.2.0"}
]
endDocumentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/thumb_hash.
Usage
ThumbHash.generate_base64_hash!("my-image.jpg")