gruntydatsun Posted July 25, 2009 Share Posted July 25, 2009 I need to get the image size, in bytes, of an image that is part of a webpage. The image is a standard gif. I tried the DOM image object doesn't seem to have a property I can easily reference. Does anyone know an easy way.... or failing that a hard way? Link to comment Share on other sites More sharing options...
Rarst Posted July 25, 2009 Share Posted July 25, 2009 Get image URL from page, then use InetGetSize() ? AutoIt tag at Rarst.net Link to comment Share on other sites More sharing options...
gruntydatsun Posted July 25, 2009 Author Share Posted July 25, 2009 (edited) Get image URL from page, then use InetGetSize() ?Nice. Thanks RarstHeres the code for people coming later...$oImg = _IEImgGetCollection ($oIE, 3)$sInfo = "Src: " & $oImg.src$size = InetGetSize($oImg.src)The three at the end of the first line means the 4th image on the page. Edited July 25, 2009 by gruntydatsun Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now