scionoftech / webp-converter

[DEPRECATED] A small node.js library for converting any image to webp file format or converting webp image to any image file format.
MIT License
229 stars 43 forks source link

Error: spawn lib/libwebp_osx/bin/webpmux ENOENT #20

Closed fengxianhua closed 4 years ago

fengxianhua commented 4 years ago

hi, I got a error when i use webpmux module, It seems that this file cannot be found because the current execution path is incorrect.

if (process.platform === 'darwin') {
  return 'lib/libwebp_osx/bin/webpmux';
}

which i think it should be like:

if (process.platform === 'darwin') {
  return __dirname + '/lib/libwebp_osx/bin/webpmux';
}