Skip to content

A couple of small utilities to generate random avatars for users of incognito chats.

License

Notifications You must be signed in to change notification settings

redsolution/avatartools

Repository files navigation

avatartools

A couple of small utilities to generate random avatars for users of incognito groups.

generateavatars

Simple utility to generate avatars of different shapes and colors from prepared blueprints. The result of the program generates 128*128px avatars like these:

  • images folder must exist and contain template 128x128 images in .png format. While there are no restrictions on image contents, best results are achieved with black-on-transparent template images. No non-images files are allowed in this folder, the program currently does not retry image generation if randomly chosen file turns out to be a non-image
  • colors.json file must contain JSON with a list of available colors.

The program

Usage:

$ python generateavatar.py folder

Where folder is a folder to store the output file.

mergeavatars

Simple utility to merge two different avatars, for use in two-person private chats. The result of the program generates 128*128px avatars like these:

Usage:

$ python mergeavatars.py firstavatar secondavatar folder

Where firstavatar and secondavatar are original avatar images, and folder is a folder to store output file. URLs are accepted as file parameters.


License

License: AGPL v3

License

About

A couple of small utilities to generate random avatars for users of incognito chats.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages