For a project I'm working on I want to take 40-50 music band logos, and arrange them into a collage in a specific area of an image. Example from online below:
Below you can see an example of what I'm trying to do:
And I want to do this for 20-25 other genres. Sometimes the band logos are not too weird and it's easy to put them into a presentable collage, but sometimes I have to spend hours figuring out the best way to arrange them. So is there an automatic way to do this? All the band logos are individual transparent images whose selection layers/boxes correspond only to whatever is visible, so is there an algorithm or method that can take as inputs the individual logos, available area/final collage size, maybe some parameters like maximum distance between images, and output something similar to my second image but in the most efficient/"geometrically logical" way possible?