I tried to get the size of my image field in sitecore, but am not able to achieve.
I can take the height and width of the image by using below code.
@{
Sitecore.Data.Items.Item curItem = Sitecore.Context.Item;
Sitecore.Data.Fields.ImageField field = curItem.Fields["Image"];
}
<p>Height: @field.Height</p>
<p>Width: @field.Width</p>
But how to get the size..?