Answer the question
In order to leave comments, you need to log in
Album with adapted photos like in Telegram?
Who solved such problems when you need to make an album from a set of photos, depending on their size, as Telegram or VK did. We need a detailed algorithm, + how to store them in a table (user messages) if, for example, a user sends just 3 photos without text and h. If in the first option, store only src as /img/1.png, /img/2.png, /img/3.png, and then separate them by ',' and make an album? The second option is if the user sent another + text to the photos, how then to store the text with src? or make another table for this option, where the text will be with the key from the photo field?
Answer the question
In order to leave comments, you need to log in
It's called collage.
https://habr.com/ru/sandbox/78613/
Further it will be much easier. Even easier if in Google: "js collage image".
Thank you.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question