Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tilesman-0.1.3.tar.gz (18.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page