innix / github-avatar-generator

A GitHub-esque avatar image generator written in Python.
MIT License
24 stars 3 forks source link

Infinite loop if too many blocks are requested #2

Open innix opened 3 years ago

innix commented 3 years ago

If you try to create an avatar with more blocks than can be fitted on the image, the avatar generator will loop forever.

Reproducible example:

$  python3 example.py 420 32 avatar_01.png

The generator should detect if too many blocks have been asked for, and raise an exception.

swiftapps-dev commented 3 years ago

Should there be a dev branch to work on? Or do you want people to just work on master branch? I think dev branches are a good idea.