<img src="img.gif" />
I hope you understood the point of my question, let me know if anything is unclear.
Image objects have "width" and "height" properties. If the img had id='img1' then...
window.onload = function()
var i = document.getElementById('img1');
if (i) alert('width: ' + i.width + ', height: ' + i.height);