Small Python script to generate PNG avatars with user initials.
Designed for quick, manual use (e.g. printer profiles) where default icons are unwanted.
Cross-platform: Linux + Windows.
- generates a 256×256 PNG with 1–2 initials
- deterministic background color based on initials
- automatic text contrast (black/white)
- fixed output name:
etg_XX.png - overwrites existing file (intentional)
- no full names
- no custom fonts
- no configuration
- no UI
- no creativity
This is a work tool.
- Python 3.9+
- Pillow
Linux:
pip install pillowWindows:
py -m pip install pillowLinux:
python tworzenie_avatarow.py --user mcWindows:
py .\tworzenie_avatarow.py --user mc