Given a bunch a images of different size and ratio, but all rectangular, is there a easy way in javascript/css to assemble them so they fit the whole web page. Such as :
Given the following constraints :
- Images could be, in the process, be resized down, but not up.
- The resizing down should have a size limit (so image could still be visible).
- Ratio must be preserved.
Is there generic/formal terms to describe this process so I can better search for solutions ?
I guess there is no easy, ready-to-use way to do this, like a js library. But does it exist an algorithm that would handle this operation, like form a geometrical point of view of assembling rectangle to fit a bigger rectangle ?
Aucun commentaire:
Enregistrer un commentaire