Skip to main content

Tilesman

Tilesman is designed to create a hierarchy of tiled representations of the supplied photos. Starting with the photo in its original pixel resolution, Tilesman will create the minimum number of tiles, as per dimensions supplied as arguments, and save them in a numbered folder. After that, the photo will be resized to 1/2 of its original size and the tiling process will be applied recurvively until the photo reaches the minimum size of 1 x 1 pixels. At this stage, a hierarchy of folders is expected to exist, named from “0” (1 x 1 pixels image, one tile) up to the highest numbered folder (original size photo, maximum number of tiles). Tiles can have dimensions smaller than the requested sizes, when they are extracted from the edges of x and y axes.

Pre-requisites

Python 3.3+

pip 9.0.0+

Pillow 5.0.0+

Installation

pip install tilesman

Usage (in your Python code)

Processing a single photo

from tilesman.core import photo_tiling

photo_tiling(‘/path/to/the/photo’, tile_max_width, tile_max_height)

Processing several photos in a directory (parallel processing)

from tilesman.core import batch_photo_tiling

batch_photo_tiling(‘/path/to/the/photo/directory’, tile_max_width, tile_max_height)

Usage (as a command line utility)

For detailed argument options:

tilesman -h

To tile a photo

tilesman -p /path/to/the/photo_or_directory -w <tile_max_width> -e <tile_max_height>

Tests

cd /where/you/saved/tilesman/source

python -m unittest -v tilesman/tests/test_*

Metadata

Release files for tilesman 0.2.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tilesman 0.2.4
File Size Uploaded Provenance Actions
tilesman-0.2.4.tar.gz 19.2 kB Without provenance Details for tilesman-0.2.4.tar.gz

Release files / tilesman-0.2.4.tar.gz

Download URL tilesman-0.2.4.tar.gz
Size 19.2 kB
Tags Source
SHA-256 checksum
How to use checksums
41b22374a6a7d7b4928f8583793acdbe977a5ce8a0a589b07ac98469f97ab8a1
BLAKE2b-256 checksum
How to use checksums
dd46fb46d0aa3861434bb0b8a7394c78a31f6e3fc16fdf6210c3e735a9d0ab09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for tilesman 0.2.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page