Skip to content

portal-labs/thumb_hash

Repository files navigation

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"}
  ]
end

Documentation 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")

About

An Elixir bridge to the Rust ThumbHash library.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published