A GitHub-esque avatar image generator written in Python.
-
Install the Pillow package:
pip install Pillow
-
Clone repository.
An example script is provided to demonstrate usage. The example creates a single image and saves it to a file.
python example.py <canvas_size> <block_count> <output_filename>
Parameter | Summary |
---|---|
canvas_size | The size (width and height) of the image in pixels. |
block_count | The number of colored blocks to use in the image. |
output_filename | The output image file path. |
For example:
$ python example.py 420 12 avatar_01.png
You may use GitHub Avatar Generator under the terms of the MIT License (see LICENSE).