brew install imagemagick
mkdir venv
virtualenv --python python3 venv
source venv/bin/activate
pip install -r requirements.txt
-
Convert large image into small bitmap
convert leif.jpg -resize 32 -remap color_map.gif +dither leif-color-32x32.png convert leif.jpg -resize 32 +dither -colors 4 leif-32x32.png
-
Generate build instructions
python instructions.py leif-32x32.png