title: How to get image width and height from a network url
body: <p>I am working on an android app and using REST APIs in it. I am receiving image urls from server and I want to show these images according to the original height of the image using image url.</p>
  
  <p>How can I get the width and height of image using network image url. I have already tried getting bitmap from the string url but for this I want to perform this in background thread which leads the image loading very slow.</p>
  
  <p>Is there any way I can get the image width and height from image url and can show the image in imageview according to the width and height.</p>
  
  <p>Please help me if anyone know about this.</p>
  
  <p>Thanks a lot in advanced.</p>