iconi.py is a python script that generates icons of different sizes from a single image. It uses the Pillow library to resize the image.
pip install pillow
python iconi.py