encode-image-uri
Simple plugin to encode images to base64, with a mimetype conservation (jpg, png, gif, etc).
Installation
# npm $ npm i encode-image-uri # yarn $ yarn add encode-image-uri
How to use
const encodeImageURI =
Note that the image fiven must be a File object.
Example
Image from an input with multiple files
documment
Contribute
I’ll happily get your PR :)