title: Javascript - Get Image height
body: <p>I need to display a bunch of images on a web page using AJAX. All of them have different dimensions, so I want to adjust their size before displaying them. Is there any way to do this in JavaScript?</p>
  
  <p>Using PHP's <code>getimagesize()</code> for each image causes an unnecessary performance hit since there will be many images.</p>