V
V
Vladimir2020-04-19 14:52:29
JavaScript
Vladimir, 2020-04-19 14:52:29

Is there a ready solution to add borders for images?

Good afternoon.

Already a common practice for video: if the video is vertical, borders are added to it so that the video fits into the standard aspect ratio.

Is there a ready solution (preferably JS or jQuery) to give this effect to still images on the fly?

So far I have to do it manually:

Initial:

5e9c3b3339ace995397486.jpeg

Result:

5e9c3b577efb6115221071.jpeg

Thank you

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Sarvarov, 2020-04-19
@djQuery

You can do it yourself - make some kind of div with position:absolute, and stretch this image over the entire container and make it filter:blur(20px);
But there are also ready-made solutions:
https://www.jqueryscript.net/other/Create-Blurred-...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question