Given a URL to an image (and not the image itself), what’s the most efficient of getting it’s dimensions? I would like to change the height and width attributes in the image tag (<img>) if it is greater than 200×200. However, if it’s smaller than that, then I’d like to keep the size as it is. (I’m using ASP.NET/C#)
Given a URL to an image (and not the image itself), what’s the most
Share
If you don’t want to check the properties of the image by loading it first you can do it with javascript: