stetsmando / pi-camera

A Node.js wrapper for the native Raspberry Pi camera utilities
MIT License
74 stars 17 forks source link

Implemented snapDataUrl() #18

Closed sui77 closed 4 years ago

sui77 commented 4 years ago

I wanted to --output - to capture a photo without saving it to disk. The result buffer was too small and the default utf8-encoding (instead of binary) was wrong, so I had to add options to Execute.run.

While being at it, I also added my snapDataUrl() method which will conveniently return a photo as data:image/jpg;base64,... URL.

stetsmando commented 4 years ago

@sui77 this is awesome. Thank you so much for the contribution!