Skip to content

Latest commit

 

History

History
62 lines (42 loc) · 1.3 KB

readme.md

File metadata and controls

62 lines (42 loc) · 1.3 KB

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}