Skip to content

Command line interface for the smartcrop library to provide content aware image cropping.

Notifications You must be signed in to change notification settings

Tintress15/smartcrop-cli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Commmand line interface for smartcrop.js

WARNING: This is a work in progress. Neither the API nor the algorithm are finished. (Automated) verification, testing and benchmarking are yet to be done.

Example Image: https://www.flickr.com/photos/endogamia/5682480447/ by N. Feans

You can learn more about smartcrop.js on the library homepage

Installation

You can install smartcrop-cli using npm

npm install -g smartcrop-cli

Usage

Usage: node ./smartcrop-cli.js [OPTION] FILE [OUTPUT]

Examples:
  node ./smartcrop-cli.js --width 100 --height 100 photo.jpg square-thumbnail.jpg    generate a 100x100 thumbnail from photo.jpg


Options:
  --config   path to a config.json               
  --width    width of the crop                   
  --height   height of the crop                  
  --quality  jpeg quality of the output image      [default: 90]
  -*         forwarded as options to smartcrop.js

About

Command line interface for the smartcrop library to provide content aware image cropping.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%