I have a need to interrogate every img tag in a webpage and find its height and width in its rendered form. Not the actual physical image dimensions. I need to do this in C# in a WinForm app.
Example: http://motherboard.vice.com/read/i-built-a-botnet-that-could-destroy-spotify-with-fake-listens
The main image's physical dimension is 3648x2736. The rendered image is 1000x750 when my browser is maximized. I am aware of the media queries and the image resizing due to them. This img tag doesn't have a width and height attributes. How do I get my app to get the 1000x750 size using C# and assuming largest media query size and a resolution of at least 1400 width.
I am assuming I will need a browser control like Awesomium, CefSharp, EO.Browser or IE Web Browser Control? Not sure which one can do this. I would like to iterate through the img tags and get the dimensions of each rendered one as if I opened a browser and used dev tools to get the computed dimensions of each image. I prefer to do this processing in C# than Javascript.