abatap

Generate letter avatar from username

Latest version: 0.2.0 registry icon
Maintenance score
0
Safety score
0
Popularity score
70
Check your open source dependency risks. Get immediate insight about security, stability and licensing risks.
Security
  Vulnerabilities
Version Suggest Low Medium High Critical
0.2.0 0 0 0 0 0
0.1.0 0 0 0 0 0

Stability
Latest release:

0.2.0 - This version may not be safe as it has not been updated for a long time. Find out if your coding project uses this component and get notified of any reported security vulnerabilities with Meterian-X Open Source Security Platform

Licensing

Maintain your licence declarations and avoid unwanted licences to protect your IP the way you intended.

BSD-2-Clause   -   BSD 2-Clause "Simplified" License

Not a wildcard

Not proprietary

OSI Compliant



Abatap

Generate letter avatar from username.

Shamelessly copied from alchemic_avatar and slightly modified with this code sample originally written by Sergio Tapia

Installation

If available in Hex, the package can be installed by adding abatap to your list of dependencies in mix.exs:

def deps do
  [
    {:abatap, "~> 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/abatap.

Examples

  ## default options
  # - palette: :google
  # - shape: :square
  # - size: 512
  # - padding: size * 0.546875

  iex> Abatap.create_from_initials("John", "Doe")
  {:ok, "/var/folders/bq/v60646nd7370n3lffmgfh94r00016k/T/JD-google-1731556906832.png"}

  iex> Abatap.create_from_initials("John", "Doe", palette: :google)
  {:ok, "/var/folders/bq/v60646nd7370n3lffmgfh94r00016k/T/JD-google-1731556436238.png"}

  iex> Abatap.create_from_initials("John", "Doe", palette: :iwanthue, shape: :circle)
  {:ok, "/var/folders/bq/v60646nd7370n3lffmgfh94r00016k/T/JD-iwanthue-1731557222647.png"}

  iex> Abatap.create_from_initials("John", "Doe", palette: :google, shape: :squircle, size: 1024, padding: 400)
  {:ok, "/var/folders/bq/v60646nd7370n3lffmgfh94r00016k/T/JD-google-1731556436238.png"}

Google's Inbox Palette

I Want Hue

A palette generated from:

iwanthue