Search for photo montage and photo collage algorithms, as well as a photo line.
An HP article called "Structured Layout for a Changeable Background" may be helpful.
Numerous collage programs are available for purchase, and some programs are available in source form; for example, see hlrnet , software.informer , and perhaps this is resizing.
The algebra for scaling photos for a collage while maintaining the proportions is simple and easy to describe for specific cases, but not for too general ones.
source share