I have looked into this briefly. Several modules seems to use the script at https://github.com/rosell-dk/webp-convert. And that seems to be a good script.
I noticed that when 'ETS Super Speed' release an update to their module, the haven't updated webp-convert to the latest release.
But it...