Skip to main content

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

Project description

ImageTyler

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-0.1.0.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: imagetyler-0.1.0.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for imagetyler-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8eaa8c8828967cfe19a71f68c64d98e6df2e0648472a347f6fa14250c0ad40d9
MD5 779673f13e36bb277f2cc657098f9582
BLAKE2b-256 5ba24a39c16d039a2258c7a363777f7169aa9813fe35fdb11c9d65c5156216f3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: imagetyler-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for imagetyler-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d8f5b2b88245b9a4f16c1cfcca48c0fb95b9907e13d6711e6724c958cf35ae84
MD5 f9108946240335451fa95d3b862b0eee
BLAKE2b-256 0d781a2c0a27d05852fa508a42534ae54fcf116a114582644b4bb6acb5f0af91

See more details on using hashes here.

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