ios-imagefile-megapixel icon indicating copy to clipboard operation
ios-imagefile-megapixel copied to clipboard

resize from base64

Open hicTech opened this issue 10 years ago • 2 comments

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?

hicTech avatar Sep 09 '14 09:09 hicTech

var img = new Image();
img.src = "data:image/png;base64,.............";

puzrin avatar Nov 27 '14 19:11 puzrin

Anyone already found this solution?

dimanchee avatar Jan 06 '15 09:01 dimanchee