Y
Y
Yarik2020-05-15 11:50:14
PHP
Yarik, 2020-05-15 11:50:14

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?
5ebe57c4a8205088552113.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mahmudchon, 2020-05-15
@Yariik

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 question

Ask a Question

731 491 924 answers to any question