icon: lucide/image
crp
Tools for cropping images.
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 crpfrom within a virtual environment - Invoke with
crporpython -m crp
- Install with
- pipx
- Install CLI with
pipx install crpand invoke withcrp - Run without installing CLI with
pipx run crp
- Install CLI with
- uv
- Install CLI with
uv tool install crpand invoke withcrp - Run without installing CLI with
uvx crp
- Install CLI with
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)
| File | Size | Uploaded | |
|---|---|---|---|
| crp-0.0.6.tar.gz | 8.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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 logRelease 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