View Source Thumbhash (Thumbhash v0.1.0-alpha.0)

Implementation of ThumbHash in Elixir

Summary

Functions

Encodes an RGBA image to a ThumbHash.

Functions

Link to this function

rgba_to_thumb_hash(w, h, rgba)

View Source
@spec rgba_to_thumb_hash(1..100, 1..100, :array.array()) :: binary()

Encodes an RGBA image to a ThumbHash.

Note

  • w and h cannot exceed 100
  • rgba is required to be an :array.array()

Returns a binary of hash.