Get image width and height from the Base64 code in JavaScript April 16, 2023 by Tarik var i = new Image(); i.onload = function(){ alert(i.width + ", " + i.height); }; i.src = imageData;