src/node-base64-image.js:13-13
Callback for encode/decode functions
Parameters
src/node-base64-image.js:27-65
Encodes a remote or local image to Base64 encoded string or Buffer
Parameters
url
string URL of remote image or local path to imageoptions
[Object] Options object for extra configuration (optional, default{}
)callback
fnCallback Callback function
Returns fnCallback Returns the callback
src/node-base64-image.js:41-41
src/node-base64-image.js:58-58
src/node-base64-image.js:77-89
Decodes an base64 encoded image buffer and saves it to disk
Parameters
imageBuffer
Buffer Image Buffer objectoptions
[Object] Options object for extra configuration (optional, default{}
)options.filename
string Filename for the final image file
callback
fnCallback Callback function
Returns fnCallback Returns the callback