Excon (excon v4.0.0) View Source
Pure Elixir identicon creator
Link to this section Summary
Functions
Create an indenticon from an identifying string.
Link to this section Functions
Create an indenticon from an identifying string.
Options
type
: :png or :svg (default: :png)filename
: a string for the file name (default: nil, image data is returned)magnification
: how many times to magnify the 8x8 pattern (default: 4)base64
: should output be base64 encoded (default: false, filename overrides)
Examples
iex> Excon.ident("ExCon", base64: true)
"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAADFBMVEXwwNjmqNT62dn/0tL9+OiNAAAAAklEQVR4nGKkkSsAAABBSURBVGNghAJmIGCCAhAbJs5ABwUwDkiCAQpAbJgmeiiAM4AA7jAggGmklwKYJCygkMVGkoKBjovBkiZhnAHKmwBcxQWBMC75hwAAAABJRU5ErkJggg=="
iex> Excon.ident("ExCon", filename: "excon")
:ok