dessibelle / legoleif

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Instructions

Installation

  1. brew install imagemagick
  2. mkdir venv
  3. virtualenv --python python3 venv
  4. source venv/bin/activate
  5. pip install -r requirements.txt

Usage

  1. 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
    
  2. Generate build instructions

    python instructions.py leif-32x32.png
    

About


Languages

Language:Python 95.4%Language:Shell 4.6%