I have a Base64 image encoded that you can find here. How can I get the height and the width of it?
Advertisement
Answer
var i = new Image(); i.onload = function(){ alert(i.width + ", " + i.height); }; i.src = imageData;
I have a Base64 image encoded that you can find here. How can I get the height and the width of it?
var i = new Image(); i.onload = function(){ alert(i.width + ", " + i.height); }; i.src = imageData;