Command line batch image cropping tool

Viewed 65805

is there any lightweight command line batch image cropping tool(Linux or Windows) which can handle a variety of the formats ?

8 Answers

macOS has sips image processing tool integrated. Cropping functions available are:

    -c, --cropToHeightWidth pixelsH pixelsW 
        --cropOffset offsetY offsetH 

Easy with sips: just set the offset to start the cropping:

sips --cropOffset 1 1 -c <height> <width> -o output.png input.png
Related