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
232 stars 44 forks source link

Support for Converting From Binary Buffer to WEBP #23

Open Lonniebiz opened 4 years ago

Lonniebiz commented 4 years ago

I'd like the ability to work directly with binary buffers instead of files.

I'm generating PNGs into binary buffers (instead of files) and serving that directly to the web browser via node's res.write(buffer,'binary');. I'd like to convert that buffer to webp before sending it to the web browser. I'd like to do all of this without writing files to the file system.

Am I over looking this in the API? If not, I'm requesting support for this.

abdatta commented 4 years ago

+1 I have a very similar requirement and would appreciate if this feature is added!

valbofs commented 1 year ago

Did you find an answer? I'm currently trying to convert base64 data into png binary buffer without writing to the file system