imagemagick with nodejs not working
===

I am trying to resize an image with node-imagemagick library, but it is not working.

the code i am using to resize is 

	im.resize({
		  srcPath: __dirname+'originalimage.jpg',
		  dstPath: __dirname+'resized.jpg',
		  width: 50
		}, function(err, stdout, stderr){
		  if (err) throw err;
			  
		});

It throws the error


    Error: Command failed: Invalid Parameter - -set

        at ChildProcess.<anonymous> (E:\NodeJsDevelopment\node_modules\imagemagick\imagemagick.js:64:15)
        at ChildProcess.EventEmitter.emit (events.js:91:17)
        at Process._handle.onexit (child_process.js:674:10)
