in reply to Best way to parse/evaluate HTML page contents for apparent image size
But you forgot about CSS!
There is only one way, just do it!