1.0.1 • Published 4 years ago

@mariomixtega/imagecropper v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

Image Cropper

Tool for cropping images to the minimum possible.

How it works?

Given an image it removes all empty pixels arround the pixels that are not. This has only been tested with png images.

How to use?

First install by running

$ npm i -g @mariomixtega/imagecropper

The you can simply run

$ imagecropper --filename "/path/to/image.png"

And thats all! The new image will be saved on the same directory from where you use it. If you want the result image been on other directory, you can use the --output parameter:

$ imagecropper --filename "/path/to/image.png" --output "../my/folder/result.png"

An example

Source Image:

Cropped Image: