Tools for cropping images.
Project description
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. 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 3840x2160
crp suggest --width 1652 --height 2214 poster # Crop to 1476x2214
To see the help text, run crp --help/crp -h.
Related
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file crp-0.0.2.tar.gz.
File metadata
- Download URL: crp-0.0.2.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7cc4e960e07f90518b2e8b7fa3120bbeaf4a7203fd5590f875a9824b64123a04
|
|
| MD5 |
2e1e806e2faad54179a8dbd01d1b02ec
|
|
| BLAKE2b-256 |
3668fb1e3b30f58093a1915ed94d0ca373bf36d9e9efeb4ac290093c02ae95c5
|
Provenance
The following attestation bundles were made for crp-0.0.2.tar.gz:
Publisher:
ci.yml on br3ndonland/crp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
crp-0.0.2.tar.gz -
Subject digest:
7cc4e960e07f90518b2e8b7fa3120bbeaf4a7203fd5590f875a9824b64123a04 - Sigstore transparency entry: 483458519
- Sigstore integration time:
-
Permalink:
br3ndonland/crp@72688859b03b8465fd3c1aa6b7c0d85fe345e7e4 -
Branch / Tag:
refs/tags/0.0.2 - Owner: https://github.com/br3ndonland
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@72688859b03b8465fd3c1aa6b7c0d85fe345e7e4 -
Trigger Event:
push
-
Statement type:
File details
Details for the file crp-0.0.2-py3-none-any.whl.
File metadata
- Download URL: crp-0.0.2-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4ddb8c1b8838250bf9f8de1431c44cb1aaf9808a5ce38a4f1415afbed3dec42
|
|
| MD5 |
2ecdead1634bb315dbccbb4b2c52c3d7
|
|
| BLAKE2b-256 |
ff16942ca3a658388cdd6b040beea5650f371613b336183be6edeec9504ba927
|
Provenance
The following attestation bundles were made for crp-0.0.2-py3-none-any.whl:
Publisher:
ci.yml on br3ndonland/crp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
crp-0.0.2-py3-none-any.whl -
Subject digest:
d4ddb8c1b8838250bf9f8de1431c44cb1aaf9808a5ce38a4f1415afbed3dec42 - Sigstore transparency entry: 483458521
- Sigstore integration time:
-
Permalink:
br3ndonland/crp@72688859b03b8465fd3c1aa6b7c0d85fe345e7e4 -
Branch / Tag:
refs/tags/0.0.2 - Owner: https://github.com/br3ndonland
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@72688859b03b8465fd3c1aa6b7c0d85fe345e7e4 -
Trigger Event:
push
-
Statement type: