So I have an image cropper and its allowing the user to set the size of the image. The image returned after it is cropped is in this form:
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAtwAAALcCAYAAADUqWdpAAAgAElEQVR4Xux9...
However, when I try to decode this, i'm told that it is not in the correct format... What is going on here?
EDIT: I'm using var base64 = require('base-64'); base64.decode(string);
EDIT: Full return value: https://pastebin.com/vsHBq3pR