I'm pre-generating a set of web pages, each with a few hundred small, static, randomly sized images. I would like to fit these images into the smallest area of the page possible. Order of display isn't particularly important.
Is there a general way to maximize the display density of these images?
Currently, I'm doing the simplest thing possible: gridding the images out in a table. Not ideal, since it leaves a lot of whitespace.
Any ideas? Thanks.