Issue with GM for NodeJS

450 Views Asked by At

I'd like to use GM in my nodejs application but it seems not working... I get an error message when I try to get the size of my image...

My code :

gm(request.files.file.path)
.size(function (err, size) {
  console.log(err);
});

My error message :

{[Error: spawn ENOENT] code: 'ENOENT', errno: 'ENOENT', syscall: 'spawn'}

My file is well uploaded and when I put request.files.file.path, I have a right path of the file.

EDIT #1:

console.log(request.files.file.path);

// public\uploads\d8fsd5645fsd4fsd4fsd5f4sd65.png

EDIT #2:

enter image description here

0

There are 0 best solutions below