I need to get the display/visual image dimensions of an images in a html page. I am using JSOUP.

I can get the actual image dimensions by retrieving the images as stream but I don't need the actual size of the images instead I need the display size only.

There is no guaranty that whether the **img tags** contains the height and width html attributes so I cannot rely on getAttribute method.

It would be great help If I can get any suggestions on this.

Thanks in advance.