Generating Photomosaic Images in Python

In this article, we will introduce how to use python mosaic project to create photomosaic images.


mosaic is python script for creating photomosaic images, it is based on python pillow. You can find it in here.

How to create photomosaic images in python?

We will use an example to show you how to use mosaic to do.

You can use command below:

python <image> <tiles directory>

For example:

python game_of_thrones_poster.jpg /home/admin/images/screenshots

It will create photomosaic image based on image game_of_thrones_poster.jpg.

You may see a photomosaic image like:

Generating Photomosaic Images in Python