Although it seems that this question has been asked before, people rely on canvas for that conversion. The problem is going from a base64 url like this: data:image/p
data:image/p