Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 621 Bytes

readme.md

File metadata and controls

38 lines (26 loc) · 621 Bytes

fastcrop

Smart crop large amount of photos and take advantage of Node.js worker threads.

Installation

# install globally
npm install -g fastcrop

# npx
npx fastcrop@latest photo.jpg -s 512x512 --output ./my-dir/

Help


  Fast and smart image cropper

  Usage
    $ fastcrop <input>

  Options
    --dry-run, -d Dry run.
    --size, -s Specify output size.
    --output, -o  Output directory.
    --concurrency, -c Number of concurrency. (default: Infinity)

  Examples
    $ fastcrop photo.jpg -s 512x512 --output ./my-dir/

API

import { cropMultiple, crop } from "fastcrop";