image-base64
Convert image to Base64 format
Installation:
npm install image-base64 --save
Usage:
var imageBase64 = ;//Local imageimageBase64;//Remote imageimageBase64
API:
local(path)
path
string, local picture address
url(path,fn)
path
string, remote picture addressfn
callback function after getting data