imagemagick-stream
Streaming imagemagick api
Install
$ npm install imagemagick-stream
Usage
const im = ;const read = fs;const write = fs; const resize = ;read;
For convenience, you can also pass the input filename to the constructor and the output filename to the .to()
method.
;
To use settings and operators that are not currently part of the API, please submit a pull request, or use the .set()
and .op()
methods.
See the imagemagick docs for a list of available options.
;
NOTE: You shold listen to the finish
event on the writable stream you're piping to, not the stream from ImageMagick:
const read = fs;const write = fs; ; write;
License
MIT