<script> str="var img=new Image(); img.src=this.src; this.width=img.width;this.height=img.height" </script> <img src="src" onload="eval(str)"></img>