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