Closed ProgrammingLife closed 4 years ago
It's only supported under Electron, not vanilla Node, since Electron provides the required support for canvas.toDataURL('image/webp')
by way of its Chrome engine.
https://github.com/Automattic/node-canvas doesn't have webp support built-in, although it may be available from other sources.
I try to use WebmWriter like this:
But unfortunately I have no luck because evertime I get "Couldn't decode WebP frame, does the browser support WebP?". How to use it with Node.js?