Image cropping is a common task in many web applications. Usually just cutting out the center of the image works out ok. It's often a compromise and sometimes it fails miserably. Smartcrop.js is the result of my experiments with content aware image cropping. It uses fairly simple image processing and a few rules to attempt to create better crops of images. This library is still in it's infancy but the early results look promising. So true to the open source mantra of release early, release often, I'm releasing version 0.0.0 of smartcrop.js. Smartcrop.js implements an algorithm to find good crops for images. It can be used in the browser, in node or via a CLI. Smarcrop requires support for Promises, use a polyfill for unsupported browsers or set smartcrop.Promise to your favorite promise implementation (I recommend bluebird).
Features
- Smartcrop.js implements an algorithm to find good crops for images. It can be used in the browser, in node or via a CLI
- Command line interface for the smartcrop library to provide content aware image cropping
- Smartcrop.js Test Bed, allows you to test smartcrop with your own images and different face detection libraries
- Smartcrop.js Test Suite, contains over 100 images, heavy
- Automatic Photo transitions, automatically creates Ken Burns transitions for a slide show
- The smartcrop-cli offers command line interface to smartcrop.js