Skip to content

Generate gradient avatars on demand. Port of Aelpxy's avatar generator in python.

License

Notifications You must be signed in to change notification settings

sqdnoises/avatar-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Avatar Generator

Generate gradient avatars on demand.
This is a port of Aelpxy's avatar generator. View repository

Getting Started

Clone this repository or download the zip and extract it to a folder you like.

Requirements

You need Python 3.6+ for this to work.

Install pip Requirements

Open a terminal in the folder this readme is in.

On Windows:

Make sure python is on path.
Run:

python -m pip install -r requirements.txt

OR

python -m pip install colorhash

On MacOS/Linux:

Make sure python3 is on path.
(If this command gives an error saying no module pip or something, make sure any python pip related packages are installed.)
Run:

python3 -m pip install -r requirements.txt

OR

python3 -m pip install colorhash

To run

Open a terminal in the src folder.

On windows:

Make sure python is on path.
Run:

py app.py

On MacOS/Linux:

Make sure python3 is on path.
Run:

python3 app.py

To use

Goto http://localhost:5050/ for a random image.
Goto http://localhost:5050/<some text> where <some text> is the seed.

For custom sizes,

You can use the parameter size to change its size in pixels.
Examples:

For a square image,

You can use the parameter square to change the shape of the svg to square.
Accepts values:

  • true, t, yes, y and 1 (any case) if you want to see square image.
  • false, f, no, n and 0 (any case) if you want to see the circular image

Examples:

Change size and make it a square

If you want to change the size of the image and also make it a square image, you can do so too by putting a & between the parameters.
Examples:

About

Generate gradient avatars on demand. Port of Aelpxy's avatar generator in python.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages