YACOOT
Yet Another Creator and Optimizer Of Thumbnail
Module for resize, crop and optimize pictures for web
API
Installation
$ npm install yacoot
Usage
var Yacoot = ; // global is optional and override default parameters // crop and resize to ./defaultTarget/foo-large.jpg 100x400 // crop and resize to ./foo-large.png 600x100 // save to s3 storage instead of local file system ... // at last ; // outputs files are optimized by mozjpeg
Default output value
mode: '0755'
width: 200
height: 200
target: '/'
TODO
- improved testing
- preserve/save original file