rsms/node-imagemagick — Issue #33: Error when resize image
Author: phitien
Created: 2012-03-05 02:45:21+00:00
State: open

Hi, I use imagemagick to resize image but I always get this error

"Error: Command failed: Invalid Parameter - /Chrysanthemum.jpg"

here is my code

var im = require('imagemagick');
im.resize({
srcPath : __dirname + "/Chrysanthemum.jpg",
dstPath : __dirname + "/Chrysanthemum-thumbnail.jpg",
height : 48,
width : 48
}, function(err, stdout, stderr) {
if(err)
throw err
});

does anyone help?