Skip to main content

icon: lucide/image

crp

Tools for cropping images.

PyPI coverage ci Ruff

Description

Images often need to be cropped to specific aspect ratios and dimensions for upload to sites like TheMovieDB (TMDB). TheMovieDB's image upload guidelines explain that backdrops should be in a 16:9 aspect ratio (width x height) and posters should be in a 2:3 aspect ratio. Some sites have auto-cropping features that will offer to crop images to the required dimensions during upload, but this is often not adequate. Images often need further editing beyond just brute-force auto-cropping. It's therefore helpful to have dimensions to use as a guideline when editing images.

This project provides a command-line interface (CLI) that suggests dimensions to use for cropping.

Installation

  • pip
    • Install with python -m pip install crp from within a virtual environment
    • Invoke with crp or python -m crp
  • pipx
    • Install CLI with pipx install crp and invoke with crp
    • Run without installing CLI with pipx run crp
  • uv
    • Install CLI with uv tool install crp and invoke with crp
    • Run without installing CLI with uvx crp

Usage

crp suggest --width=3940 --height 2160 backdrop # Crop to 3840 x 2160 (16:9).
crp suggest --width 1652 --height 2214 poster   # Crop to 1476 x 2214 (2:3).

To see the help text, run crp --help/crp -h.

Related

Release files for crp 0.0.6

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

Source distribution (sdist)

Source distribution for crp 0.0.6
File Size Uploaded
crp-0.0.6.tar.gz 8.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for crp 0.0.6
File Interpreter ABI Platform
crp-0.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 15.0 kB

Release files / crp-0.0.6.tar.gz

Download URL crp-0.0.6.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
79ec8b349973383dcfc0e92166966a76ebe32dd9a6d9b671f5b3e56d73833b55
BLAKE2b-256 checksum
How to use checksums
73c020645a1baa5c700017e69e1bdf120c6878690fbb857f55094ed5cd5efcf8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 28, 2026.

Transparency log

Release files / crp-0.0.6-py3-none-any.whl

Download URL crp-0.0.6-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ecd80e500667cf97355aa1ac889ec0ece612149c95b84700459f67d9aebf1cd1
BLAKE2b-256 checksum
How to use checksums
5a99b5f202f6b62d15572a2e6711b4579cb530cd5c4aace6ea33dac7536d4724
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 28, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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