I have an image uploaded to my HTML page within the tag <img>
, is there any way to know its original file size by JavaScript >?
Let's say I want to give console.log(larguraImagem, alturaImagem);
.
Note that the size I want to know is the original that is in the server and not what is being displayed on the screen because it may be being resized by CSS.