I have an image tag:
HTML code:
<img src="image.jpg"></img>
CSS code:
img
{
max-width: 100%;
max-height: 100%;
}
I just want to know it's actual height and width in pixels(size in memory), if it's width and height is set to auto. How to do that in javascript?