title: Fitting images of different sizes nicely into a collage
body: <p>I am looking for a javascript library (or algorithm that I can implement) to fit a number of images of arbitrary sizes on a single page with little whitespace remaining. Similar to the way Google Plus displays images<a href="https://plus.google.com/photos/109813896768294978296/albums/5632065190489236417" rel="nofollow"> [example]</a>. Or maybe even a bit more playful (google makes them identical height)</p>
  
  <p>It is OK to play with the scaling of the images a bit, as long as the aspect ratios are not messed up, and things seemingly 'fit' nicely on the page.</p>