https://github.com/redsolution/avatartools
A couple of small utilities to generate random avatars for users of incognito chats.
https://github.com/redsolution/avatartools
avatar icon identity userpic
Last synced: 8 months ago
JSON representation
A couple of small utilities to generate random avatars for users of incognito chats.
- Host: GitHub
- URL: https://github.com/redsolution/avatartools
- Owner: redsolution
- License: agpl-3.0
- Created: 2020-08-26T16:48:36.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-05T07:43:11.000Z (about 5 years ago)
- Last Synced: 2025-04-23T10:51:15.490Z (12 months ago)
- Topics: avatar, icon, identity, userpic
- Language: Python
- Homepage: https://github.com/redsolution/xabber-server/
- Size: 1.39 MB
- Stars: 1
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
[](https://www.gnu.org/licenses/agpl-3.0)
[](http://badges.mit-license.org)
- **[GNU AGPL 3.0 license](https://www.gnu.org/licenses/agpl-3.0.html)**
- Copyright 2020 © redsolution OÜ.