facecrop v1.0.0
facecrop(1)
SYNOPSIS
facecrop --size 200x200 -i picture.jpg > face.jpgDESCRIPTION
Use facecrop to extract a face from a full-body frontal image. If multiple
faces are detected only the largest one is used.
OPTIONS
--help, -hDisplay short usage instructions.--size <width>x<height>
Sets the desired output image size. Defaults to200x200.--size <size>
Shortcut for square images.--padding <percent>, -p <percent>Add padding around the face. The amount is specified as percentage of the cropped regions width/height. Defaults to40.--png [compression]
Always create a PNG image, regardless of the input file's extension. Thecompressionlevel defaults to3.--jpg [quality]
Always create a JPEG image, regardless of the input file's extension. Thequalitysetting defaults to95.--grayscaleConvert the image to grayscale.-i <file>
The input image to read. Relative paths will be resolved against the current working directory.-o <file>
The file to write the cropped region to. If omitted, and-iwas used, the file name will default to<size>-<input-basename>.<ext>.--stdinRead image fomstdin.--stdoutWrite image tostdout.
INSTALLATION
From the npm registry:
[sudo] npm install facecrop -g
EXAMPLE
facecrop --size 80 < me.jpg > me.pngfacecrop --size 400x300 --grayscale -i me.jpg -o me.pngfacecrop --size 400 -padding 10 -i me.jpg --png
SEE ALSO
10 years ago