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
urlstring URL of remote image or local path to imageoptions[Object] Options object for extra configuration (optional, default{})callbackfnCallback 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
imageBufferBuffer Image Buffer objectoptions[Object] Options object for extra configuration (optional, default{})options.filenamestring Filename for the final image file
callbackfnCallback Callback function
Returns fnCallback Returns the callback