Set Image Dimensions (ASP.NET)

Instantly sets the Width and Height attributes to an img tag, according to the actual size of the source image.

Availability

Available from the context menu or via shortcuts:

  • when the cursor is on an img tag, provided that the src attribute references an existing image file.

Example

<img src="c:\MySolutions\Images\MyImage.jpg" alt="My image" />

Result:

<img src="c:\MySolutions\Images\MyImage.jpg" alt="My image" width="960" height="720"/>

Screenshot

SetImageDimensions