E
E
ecnalab2017-09-11 20:34:55
MySQL
ecnalab, 2017-09-11 20:34:55

How to implement aligning images into tiles as Vkontakte does?

I wanted to make a similar one and I just can’t understand how VK builds tiles differently depending on the number of uploaded photos.
Do they just have different templates for all combinations of photos?
How to solve the problem with horizontal/vertical photos? Trim?
ed30de121b7d4f69a2ba6e00a916d7f2.PNG
/*****/
74ce4702b8184e29861cfd8753871020.PNG
/*****/
d5290aa2ec104d3c8e5b1c7f0ac25f20.PNG

Answer the question

In order to leave comments, you need to log in

3 answer(s)
K
Konstantin Tsvetkov, 2019-05-24
@tsklab

ERROR 1148 .

S
Sergey Sokolov, 2017-09-11
@sergiks

deNULL/Paver.js from a former VK developer. Demo .

S
Stalker_RED, 2017-09-11
@Stalker_RED

masonry? https://masonry.desandro.com/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question