A library to tile photos at different resolution levels, for loading performance
Project description
Given any photo, will create a pyramid of tiles split into different photo resolution levels, represented in a folder hierarchy. Each folder is named against the resolution level it represents, starting on L-1 (full resolution, most number of tiles) and going all the way down to 0 (1 x 1 resolution, a single layer). Number of resolution levels is defined by the equation L = 1 + ⌈log2 max(n, m)⌉
Pre-requisites
Python 3.0+ Pillow 5.0.0+
Installation
pip install tilesman
Usage
tilesman -h (for detailed options)
tilesman -p /path/to/the/photo -w <tile_max_width> -e <tile_max_height> (tile a photo)
Tests
cd /where/you/saved/tilesman/source
python -m unittest -v tilesman/tests/test_*
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.