I have 200 scanned images of matchboxes. The matchboxes have different dimensions. I want to arrange the images automatically, with as few gaps as possible, into a large image to be printed as a poster. I think what I need is a "packing algorithm" but I don't know how to proceed. Is there a way I can do this automagically in Photoshop or with an existing freeware program? I don't need any special effects, just to simply arrange the images with the most efficient use of space.
How can I compress/resize thousands of jpgs to fit exactly into the space of a DVD automatically? [more inside]