alex-chew / moza

Photo-mosaic generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Photo-mosaic generator


Languages

Language:Python 100.0%