node_modules/im/lib/im.js
/**
 * Stream based imagemagick wrapper.
 *
 * Takes a `Readable Stream` as and puts it through a `convert` process.
 *
 * @param {ReadableStream} input
 */
Stream based imagemagick wrapper.
Takes a `Readable Stream` as and puts it through a `convert` process.


Stream based imagemagick wrapper . Takes a ` Readable Stream ` as and puts it through a ` convert ` process .
function ImageMagick(input){
  if( !(this instanceof ImageMagick) ) {
    return new ImageMagick(input);
  }
  if( !input || !input.on ) {
    throw new Error('input must be a readable stream');
  }
  if (input.pause) {
    input.pause();
  }
  this.input = input;
  this.output = '-';
  this.args = [];
}
function ImageMagick ( input ) { if ( ! ( this instanceof ImageMagick ) ) { return new ImageMagick ( input ) ; } if ( ! input || ! input . on ) { throw new Error ( 'input must be a readable stream' ) ; } if ( input . pause ) { input . pause ( ) ; } this . input = input ; this . output = '-' ; this . args = [ ] ; }
Stream based imagemagick wrapper.
Stream based imagemagick wrapper .