Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 701 Bytes

README.md

File metadata and controls

29 lines (21 loc) · 701 Bytes

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