torus-tools / seo_fix

Use the power of webpack to minify/compress all your static assets.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

smart replace image sizes

gkpty opened this issue · comments

images should be saved in the size that they will be served.

if the width of the served image is fixed, the max should always be that fixed width.

for different screen sizes you can serve different images using the srcset attribute.

https://web.dev/use-srcset-to-automatically-choose-the-right-image/