Create image mosaics with python

Polyfoto

Create image mosaics with python.

Showcase

“Before and After Science” by Brian Eno “Scott 3” by Scott Walker
bna_science_mosaic scott3_mosaic

Installation

Clone this repository to your local machine with git, then install with
Python.

git clone https://github.com/shanedrabing/polyfoto.git
cd polyfoto
python setup.py install

Getting Started

Run the program with Python.

python polyfoto.py -f input.png -d sources -o output.png -n 16

Required arguments

  • -f : Input file name. This is the target to recreate.
  • -d : Input folder name. Contains images used to recreate the target.
  • -o : Output file name. Name of the rendered canvas.
  • -n : Number of rows. How many rows of images should be used in recreation?

Optional arguments