imagemagick-stream

Streaming Imagemagick api

npm install imagemagick-stream
4 downloads in the last day
9 downloads in the last week
110 downloads in the last month

imagemagick-stream

Streaming imagemagick api

Use

$ npm install imagemagick-stream
var 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

npm loves you