javascript - How do I fix this error with node.js and node-imagemagick: Error: Command failed: execvp(): Permission denied? -
im getting error:
error: command failed: execvp(): permission denied
when simple node-imagemagick script:
im = require('imagemagick'); im.identify.path = '/tmp/node_thumbs/'; im.identify('cool.jpg',function(err,features){ if(err) throw err; console.log(features); });
any ideas on causing this?
the permission denied trying launch imagemagick command, not in process of executing it.
if @ documentation, identify.path "path identify program." in case, you're redefining path executable /tmp/node_thumbs/, presumably not executable.
you want:
var im = require("imagemagick"); im.identify('/tmp/node_thumbs/cool.jpg',function...
Comments
Post a Comment