Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: spawn ENOENT #191

Closed
carlituxman opened this issue Jul 15, 2013 · 4 comments
Closed

Error: spawn ENOENT #191

carlituxman opened this issue Jul 15, 2013 · 4 comments

Comments

@carlituxman
Copy link

I'm trying in node version 0.10.13 with express 3.0.4 this code

var myfile = __dirname + "/public/resources/" + "mypic.jpg"
var gm = require("gm");
gm(myfile).size(function(err, value){
console.dir(value);
});

I obtain this error:
[Inside 'uncaughtException' event] Error: spawn ENOENT
at errnoException (child_process.js:980:11)
at Process.ChildProcess._handle.onexit (child_process.js:771:34)

@jonathanong
Copy link
Contributor

Do you have graphicksmagick installed?

@carlituxman
Copy link
Author

I have installed imagemagick

@jonathanong
Copy link
Contributor

did you subclass imagemagick?

@carlituxman
Copy link
Author

perfect I've tried:
var gm = require("gm");
var imageMagick = gm.subClass({ imageMagick: true });
imageMagick(....

it works!
thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants