JS - 从base64代码中获取图片的宽高
我有一个 base64 img 编码,您可以在这里找到它.如何获取它的高度和宽度?
I have a base64 img 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;
相关文章