Skip to content

hashpad/blocks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

blocks: Photo Mosaic Generator

Overview

tiler.py builds a photo‑mosaic: it chops the source image into fixed‑size squares, computes each square’s average colour, then replaces it with the closest‑matching tile image from a directory you provide. Matching is Euclidean distance in RGB space.

Requirements

  • Python and Pillow
pip install pillow

Usage

python tiler.py <SOURCE_IMAGE> <TILE_DIRECTORY> <TILE_SIZE_PX> <OUTPUT_IMAGE> \\
python tiler.py in_cat.jpg cifar10_raw/images/test/Automobile 30 cat.jpg

Example (Car from cats)

Car-from-cats

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages