JS – get image width and height from the base64 code July 26, 2022 by Tarik var i = new Image(); i.onload = function(){ alert( i.width+", "+i.height ); }; i.src = imageData;