Skip to content

Generate an customized avatar for your users/project without desigining it!

Notifications You must be signed in to change notification settings

r2hu1/az-avatar

Repository files navigation

Az Avatar

Generate a customized avatar with a URL for free!

Example Avatars

You can easily create avatars using the API. Here are a few examples:

Avatar A Avatar B Avatar C

URL Format

To generate a customized avatar, use the following URL format:

https://az-avatar.vercel.app/api/avatar?text=<text>&textColor=<textcolor>&fontSize=<fontsize>&bgColor=<bgcolor>&height=<height>&width=<width>

Parameters

  • text: The text displayed on the avatar. For example, "R".

    • Usage: ?text=R
  • textColor: The color of the text in hexadecimal format (e.g., "#ffffff" for white).

    • Usage: ?textColor=#ffffff
  • fontSize: The size of the text in pixels (e.g., "40" for 40px).

    • Usage: ?fontSize=40
  • bgColor: The background color of the avatar in hexadecimal format (e.g., "#0000ff" for blue).

    • Usage: ?bgColor=#0000ff
  • height: The height of the avatar in pixels (e.g., "100" for 100px).

    • Usage: ?height=100
  • width: The width of the avatar in pixels (e.g., "100" for 100px).

    • Usage: ?width=100

Example URL

For demonstration, the URL for generating an avatar might look like this:

https://az-avatar.vercel.app/api/avatar?text=ChatGPT&textColor=ffffff&fontSize=40&bgColor=0000ff&height=100&width=100

Additional Notes:

  • Replace az-avatar: Make sure to replace az-avatar with your hosted domain or use as it is.
  • Formatting: This README.md uses Markdown to provide a clear and structured overview of how to use the avatar generation API, including examples and usage instructions.

About

Generate an customized avatar for your users/project without desigining it!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published