I am trying to get the width in pixels of a an asp:Image. The image is not local.
imgUserThumb.Width.Value
Is always coming back as 0.0 anyone know why? Or perhaps thats not the right way?
Also the image is using an “onerror” attribute to check if the image URL passed to it is valid, if not then it displays a default thumbnail.
If you not set width and height for the image tag, you will get 0.
if you need to get actual size of image, load it to bitmap and get the width from there.
EDIT from URL