Skip to main content

Tools for cropping images.

Project description

crp

Tools for cropping images.

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. 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 one-off commands with pipx run crp
  • uv
    • Install CLI with uv tool install crp and invoke with crp
    • Run one-off commands with uvx crp

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

crp-0.0.1.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

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

crp-0.0.1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file crp-0.0.1.tar.gz.

File metadata

  • Download URL: crp-0.0.1.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for crp-0.0.1.tar.gz
Algorithm Hash digest
SHA256 99be5b664781b4107302c16ed9b7547e2c677610149b38692975204690dcbb9b
MD5 d685579a5f6c26d13ed224fa5e8b702c
BLAKE2b-256 8dc5b8b8a59493a40b7eba1a6523f2cece4d153f7fa1bb753ab67abd129ea89a

See more details on using hashes here.

Provenance

The following attestation bundles were made for crp-0.0.1.tar.gz:

Publisher: ci.yml on br3ndonland/crp

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

File details

Details for the file crp-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: crp-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for crp-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 11d9f49cff565360e1a592d4d33e60d607e836bf9a59be92a0c5f37a9709d978
MD5 457affadb4ac98ecb10cf31b74a1921f
BLAKE2b-256 8aaa0681ed98bda7542f1fa5064fe7f1d81fa9df9c9ee1dcb48815322a118338

See more details on using hashes here.

Provenance

The following attestation bundles were made for crp-0.0.1-py3-none-any.whl:

Publisher: ci.yml on br3ndonland/crp

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