Takes an image file and converts it to a Lego mosaic.
$ pip install -r requirements.txt
$ ./portrait.py < owen.png > owen.ldr
Mosaics are generated using the LDraw file format which can be viewed using a variety of viewer applications, such as LDView.
It can also be used as input for generating Lego instruction booklets.
Images must be using 5 colors or less, as the Lego palette is rather limited.