/image-crop

Crops transparent pixels from the edge of a png image.

Primary LanguageJavaScript

image-crop

Crops transparent pixels from the edge of a png image.


Usage

To crop a single image:

node crop.js /uncropped.png /cropped.png
node crop.js /original-filename.png /output-directory

>> output: /output-directory/original-filename.png

To crop a all images in a directory:

node crop.js /source-images /output-directory