I have already issued the command for npm to install imagemagick. I have installed imagemagick exe on my machine and ran a test of a command to change the image type from jpg to png - and that worked. So in node js I have the following code:
im.resize({
srcPath: req.files.recipeImage.filename,
dstPath: beginName+"-small.jpg",
width: 256
}, function(err, stdout, stderr){
if (err) throw err;
});
Unfortunately in my project it returns:
Error: Command failed: Invalid Parameter - -set
I saw on another post and on the imagemagick website that it means the exe was not run, but I have the command line working in my control panel on Windows. Is there another step I am missing to get this to work?