imagemin / imagemin-gif2webp

gif2webp plugin for imagemin
MIT License
6 stars 2 forks source link

Execa from execBuffer is not allowed to add the detached parameter. #6

Open lctcharly opened 1 year ago

lctcharly commented 1 year ago

Hello team!

I was wondering if there is a possibility to pass the parameters to the third parameter position when execa is called?

E.G: /node_modules/exec-buffer/index.js:35 execa(opts.bin, opts.args, { detached: true })

Since we need to be detached until the process is end for some internal process that we are doing.

    buffer = await imagemin.buffer(buffer, {
      plugins: [
        imageminGif2webp({
          lossy: true,
          quality,
          method: 4,
          metadata: 'none',
          multiThreading: true
        }, { detached: true })
      ]
    });

    this.image = sharp(buffer, { animated: true });

Can it be added as parameter from imageminGif2webp or directly in the execa(opts.bin, opts.args, { detached: true }) execution.

Please let me know if you need more information, thanks!