imagemagick con nodejs no funciona
Estoy intentando cambiar el tamaño de una imagen con la biblioteca node-imagemagick, pero no está funcionando.
El código que estoy usando para cambiar el tamaño es
im.resize({
srcPath: __dirname+'originalimage.jpg',
dstPath: __dirname+'resized.jpg',
width: 50
}, function(err, stdout, stderr){
if (err) throw err;
});
Arroja el 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)