Skip to content

moutella/crop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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}