Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 669 Bytes

README.md

File metadata and controls

27 lines (19 loc) · 669 Bytes

moza

A mosaic generator.

Example mosaic

Installation and usage

Pipenv is used for dependency management. After obtaining the repo, install the dependencies, open an environment shell, and run moza.py:

$ pipenv install
$ pipenv shell
$ python moza.py SOURCE TILES TARGET

The TILES argument should be a directory containing images to be used as tiles; they should be square and of the same size, and ideally small (as they are kept in memory to produce the mosaic).

Using the provided sample source.jpg and tiles, saving to target.jpg:

$ python moza.py source.jpg tiles target.jpg