The image that is sent, say, 1600x800 pixels, from our server to the html page - is sent as a 1600x800 file and only then, thanks to CSS, it becomes 600x800, 432x222, etc.
How to make the server "reduce the image" to the desired one in CSS and send the image of the desired size to the server?
The question arose after a curious verification of the site page via www.gtmetrix.com and PageSpeed Insight , where I wrote on each of them https://***.jpg s resized in HTML or CSS from 1600x800 to 255x127. Serving a scaled image could save 43.0KiB (97% reduction). https://***.jpg s resized in HTML or CSS from 1600x800 to 255x127. Serving a scaled image could save 43.0KiB (97% reduction). etc.
An answer with a manual image change is not accepted. It is worth imagining that if you need to upload 1000 pictures to a page. Each of them can not edit