Excon (excon v4.1.0)
View SourcePure Elixir identicon creator
This module dispatches to the appropriate image format based on the options provided.
Summary
Functions
Create an indenticon from an identifying string.
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", maginification: 8, filename: "Excon64")
:ok