I have a set of images that have varying resolution (both width and height) and I'm trying to combine the images into one large image. I would like to minimize the width and height of the final combined image, so find an arrangement where max(combined_width, combined_height) is minimal. The images are rectangular and cannot overlap. Is there an algorithm I could use for this?
Illustration of the problem:
An example set of image sizes (width, height):
(91, 272) (113, 254) (82, 237) (83, 203) (36, 109) (67, 192) (88, 198) (91, 215) (126, 264) (99, 287) (88, 313) (38, 63)