Skip to main content
Known Participant
February 10, 2018
Question

how algoritm fiting images diferent sized in page(like tiling)

  • February 10, 2018
  • 1 reply
  • 517 views

how algoritm fiting images diferent sized in page(like tiling).

like below picture.

This topic has been closed for replies.

1 reply

Colin Flashman
Community Expert
Community Expert
February 10, 2018

What you're describing is "bin packing", a complex mathematical issue: https://en.wikipedia.org/wiki/Bin_packing_problem

Because my mathematics knowledge is limited, my understanding is that this demonstrates a mathematical issue of P=NP (P versus NP problem - Wikipedia ) of which if it can be demonstrated with proof, a prize of USD$1 million is on offer - Millennium Prize Problems - Wikipedia

Doesn't mean people haven't given it a try, here's an example in javascript: https://codeincomplete.com/posts/bin-packing/demo/

Some of the advanced scripters might give it a go for a challenge, but as far as I know there's no solution in InDesign that can be downloaded free in the public domain, nor a paid one.

If the answer wasn't in my post, perhaps it might be on my blog at colecandoo!
Steve Werner
Community Expert
Community Expert
February 10, 2018

Moving (yet again) to InDesign Scripting