In my application i tried to resize the image using imagemagick but i got following error error while resizing: imagesexecvp(): No such file or directory.this is my code
im.resize({
srcPath: '/tmp/Images/' + req.files.image.name,
dstPath: 'resized_'+req.files.image.name ,
width:42,
height:42
}, function(err, stdout, stderr){
if (err) {
console.log('error while resizing images' + stderr);
};
});
The imagemagick module uses the
convertandidentifycommands and the error you describe could happen because the commands can’t be found. Make sure the commands are in a folder referenced by the path environment variable or, alternatively you can reference the commands in you node application: