When passing an image base64 as first argument to the function, it returns the base64 of the resized image. maxWidth and maxHeight are optional.
If you have a base64 image and you would like to resize it, this function will return a base64 image resizes to your height and width specifications.
bower install resize-base64 --save
var image = resizebase64(base64, maxWidth, maxHeight);