title: How to maintain aspect ratio using HTML IMG tag
body: <p>I am using an img tag of HTML to show a photo in our application. I have set both its height and width attribute to 64. I need to show any image resolution (e.g. 256x256, 1024x768, 500x400, 205x246, etc.) as 64x64. But by setting the height and width attributes of an img tag to 64, it's not maintaining the aspect ratio, so the image looks distorted.</p>
  
  <p>For your reference my exact code is:</p>
  
  <pre><code>&lt;img src="Runtime Path to photo" border="1" height="64" width="64"&gt;
  </code></pre>