M
M
Maxim2018-02-06 22:49:42
Yii
Maxim, 2018-02-06 22:49:42

How to set up a thumbnail like VKontakte?

Does anyone know how to customize thumbnails like Vkontakte. (not crop). We upload a photo, crop it to the desired proportions, and then select the display area from this ... So far, I have found an option to do crop for each photo (thumbnail and full image)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
vksee, 2018-02-07
@myks92

For example:
https://github.com/vova07/yii2-fileapi-widget
https://github.com/bupy7/yii2-widget-cropbox
The image can be reduced: by resizing (resize), cropping (crop), their options , and combinations of these options, plus sometimes there is a need to pad with margins (instead of cropping).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question