Skip to main content

CROP Images with CLI

Crops images with python using Pillow. Useful for cropping multiple images at the same time. The dafult resolution is 1920x1080

How to install

  1. Install pipx
  2. Install easycrop
pipx install easycrop

How to use:

Base Image

Base image)

  1. Single file
crop examples/kanagawa.jpg -height 300 -width 300
Output Focused 300x300

300x300)

  1. Resize image to keep maximum information possible
crop examples/kanagawa.jpg -height 450 -width 450 -resize
Output: resized then 450x450,

450x450)

  1. Using ratio instead of size, will get biggest possible:
crop examples/kanagawa.jpg -ratio 1:1  
Output: 2990x2990

2990x2990)

  1. Make it recursive
crop -r {folder} -height {height} -width {width}

Metadata

Release files for easycrop 0.0.3

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

Source distribution (sdist)

Source distribution for easycrop 0.0.3
File Size Uploaded
easycrop-0.0.3.tar.gz 4.6 MB Details

Built distribution (wheel)

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

Total release size: 4.6 MB

Release files / easycrop-0.0.3.tar.gz

Download URL easycrop-0.0.3.tar.gz
Size 4.6 MB
Tags Source
SHA-256 checksum
How to use checksums
6fb99082ac592c70d49f4e9b914cd490b2eec8b36fdf433facb5fc802c3128a1
BLAKE2b-256 checksum
How to use checksums
eb432cfb430adeb6d1d0799b7a83acff3388a38f7b12582fc242afc419ce6122
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / easycrop-0.0.3-py3-none-any.whl

Download URL easycrop-0.0.3-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1c0d995f1fd6e9cb7d85a542d8848b3648e5ab35e26217b40fc228f8e0c9e49f
BLAKE2b-256 checksum
How to use checksums
3642eb12c6f3c15dae8c22af78f608d2596b1631b52b008a2951b6051cba7f94
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release history Release notifications | RSS feed

This release

0.0.3 This release

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