Pack Layers Node

To tile layers of different aspect ratios together without leaving gaps/resizing I’d like to request something like a “bin-packing” implementation to fit layers together. I think they look great. This wouldn’t crop anything and keep aspect ratios of layers, but fit them all together in a given recatangle, with options to make all the packed layers the same width or height(proportional resize to one dimension), otherwise just respecting the size of the layer.Perhaps some form of variance/tolerance parameter to avoid the result of all the small layers at one end of the rect all the time.
There is no doubt a lot of considerations here that im not thinking about.

There’s also a QTZ wrapper of the same algo here:

Opened for voting.