N
N
Nostromo2017-12-06 21:13:44
JPEG
Nostromo, 2017-12-06 21:13:44

Why does the template and Wordpress crop images and produce them?

In general, I encountered such a problem in Wordpress as a large number of unnecessary images on the hosting, each entry will carry about 5 - 8 unique images, the template and Wordpress creates a bunch of unnecessary duplicate images with different sizes

1000 * 600
1024 * 683
1036 * 380
150 * 100
300*200
540*540
740*380
768*512 and the source itself 1036*691 compressed into tinyjpg.

Questions:

1) Will it be correct to give 1 image, which is for PC, tablets and mobile devices, if the image itself is already optimized? (Perhaps I do not understand correctly why the theme and template crop images, if not right - correct me)

2) How to implement it correctly in my case, your advice or links?

Thank you for your attention !

Hosting screenshot
5a283350202e1082260286.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Y
y0u, 2017-12-06
@Armashko

1) No. In many cases, you don't need the whole picture. For example, you want to display a small avatar for a user. Why would you give a 1000x1000 image if the avatar is only 300x300?
2) It will be more correct to use this functionality wisely.
https://wordpress.stackexchange.com/questions/1240...

Z
zooks, 2017-12-06
@zooks

That's why:
https://developer.mozilla.org/ru/docs/Web/HTML/Ele...
https://webref.ru/html/img/srcset

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question