ios-imagefile-megapixel
ios-imagefile-megapixel copied to clipboard
resize from base64
Looking at examples I can wonder how can I resize an image starting from a base64 coded one. Basically I have base64 coded image and want resize it. I've tried by printing my base64 in to an image or a canvas and create a new MegaPixImage(myImgDomReference or myCanvasDomReference) but wont work. I've also tried to convert my base64 image in to a blob and pass it to new MegaPixImage() constructor but noting. Is there a solution you can suggest me?
var img = new Image();
img.src = "data:image/png;base64,.............";
Anyone already found this solution?