Package Exports
- imagemagick-stream
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (imagemagick-stream) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
imagemagick-stream
Streaming imagemagick api
Use
$ npm install imagemagick-streamvar im = require('imagemagick-stream');
var in = fs.createReadStream('image.png');
var out = fs.createWriteStream('image-resized.png');
var resize = im().resize('200x200').quality(90);
in.pipe(resize).pipe(out);
// Alternatively
im('image.png')
.resize('200x200')
.quality(90)
.pipe(out);
// Or
im('image.png')
.resize('200x200')
.quality(90)
.to('image-resized.png');Todo
- More options
License
MIT