title: Is there a known algorithm for 2D images(rectangles) to form a cluster layout?
body: <p>I am looking for an existing algorithm for images (squares) layout similar to this:
  <a href="https://i.stack.imgur.com/vvuBE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vvuBE.png" alt="enter image description here" /></a></p>
  <p>Is anyone aware of something similar? Maybe a library or just a description?
  It would be something like this:</p>
  <ul>
  <li>Place image somewhere in the 2D space</li>
  <li>Continue arranging remaining images around it (various sizes, but smaller than the first one)</li>
  </ul>
  <p>Any help is greatly appreciated!</p>