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

Spawn EACCESS error #28

Open infinite4evr opened 4 years ago

infinite4evr commented 4 years ago

The latest commit breaks the package and It's not working fine

Error: spawn /home/converterbot/node_modules/webp-converter/bin/libwebp_linux/bin/dwebp EACCES
    at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19)
    at onErrorNT (internal/child_process.js:469:16)
    at processTicksAndRejections (internal/process/task_queues.js:84:21) {
  errno: 'EACCES',
  code: 'EACCES',
  syscall: 'spawn /home/converterbot/node_modules/webp-converter/bin/libwebp_linux/bin/dwebp',
  path: '/home/converterbot/node_modules/webp-converter/bin/libwebp_linux/bin/dwebp',
  spawnargs: [
    '/home/converterbot/temp/330959283/file_375.webp',
    '-o',
    '/home/converterbot/temp/330959283/octopusagad3.png'
  ],
  cmd: '/home/converterbot/node_modules/webp-converter/bin/libwebp_linux/bin/dwebp /home/converterbot/temp/330959283/file_375.webp -o /home/converterbot/temp/330959283/octopusagad3.png'                                                                                       
}

I have rolled back to version 2.2.3 for now.

anthinkingcoder commented 4 years ago

chmod +x /home/converterbot/node_modules/webp-converter/bin/libwebp_linux/bin/dwebp

sbalko commented 3 years ago

Can the binaries please be packaged with the right file permissions?