An Elixir bridge to the Rust ThumbHash library. See: https://github.com/evanw/thumbhash for original implmentation.
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.1.0"}
]
end
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/thumb_hash.
ThumbHash.generate_base64_hash!("my-image.jpg")