Skip to main content

Tile an image across a PDF page for print-ready output.

Project description

ImageTyler

PyPI version BSD-3-Clause

ImageTyler tiles a source image across a PDF page for print-ready output. Entirely vibe-coded, but reviewed and tested by humans. It supports mixed-unit dimensions, padding, and cutting guides.

Installation

Install as a standalone tool with uv:

uv tool install imagetyler

Add it as a dependency in your project:

uv add imagetyler

CLI Usage

Basic usage:

imagetyler photo.jpg --size 35x45mm --paper A4

ImageTyler accepts mixed-unit dimensions and inherits missing units from either side of the WxH expression. These all work:

imagetyler photo.jpg --size 35x45mm --paper 210x297mm
imagetyler photo.jpg --size 35mmx45 --paper Letter
imagetyler photo.jpg --padding 2mm --landscape --border

Useful flags include --padding for spacing between tiles, --landscape for rotating the target page, and --border with --border-width for cutting guides.

Use --list-units to inspect supported measurement units and --list-paper to list recognized paper aliases.

API Usage

from pathlib import Path

from imagetyler import generate_tiled_pdf

output = generate_tiled_pdf(
    image_path=Path("photo.jpg"),
    output_pdf=Path("tiled_output.pdf"),
    paper="A4",
    image_size="35x45mm",
    padding="2mm",
)

print(output)

License

ImageTyler is distributed under the BSD-3-Clause license.

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

imagetyler-1.0.1.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

imagetyler-1.0.1-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file imagetyler-1.0.1.tar.gz.

File metadata

  • Download URL: imagetyler-1.0.1.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for imagetyler-1.0.1.tar.gz
Algorithm Hash digest
SHA256 bb2a5574ba5cafa32f6d8b54541556ef25cca19e0b4f65cb35532619b684a96b
MD5 9f32f76955d178351e57cfeb20c7bdd3
BLAKE2b-256 7a58bfa370e8a6e6a1d7c73233d1835227c95d82fe8d939cbf7e3720d09e43e3

See more details on using hashes here.

Provenance

The following attestation bundles were made for imagetyler-1.0.1.tar.gz:

Publisher: python-publish.yml on adityaruplaha/ImageTyler

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file imagetyler-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: imagetyler-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for imagetyler-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 03113e57568fd38a371d2669fa554cb7580adde2c367866fd57c2cee0d0e29ec
MD5 04850533e277cc77bf9eaa49b95a0af4
BLAKE2b-256 a49cf3fe7341361ae9ad5ea2c12e1467faeed5ff74d2d64d266f12a0fd4f37ee

See more details on using hashes here.

Provenance

The following attestation bundles were made for imagetyler-1.0.1-py3-none-any.whl:

Publisher: python-publish.yml on adityaruplaha/ImageTyler

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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