There is a stub picture that plays the role of a preloader of the loaded picture. The size of the downloaded images are known and displayed in the tag. I also did the img max-width:100% tag so that the picture does not go beyond the edges of the page on small screens.
With the original picture, everything works well (I wrote height:auto to keep the proportions) But when we put the 1x1 stub, the proportions of the pictures are taken respectively 1 to 1, and not the ones shown in the tag. If you remove the height:auto situation is still not solved, because size remains 200, and should be smaller.
img{ max-width:100%; height:auto; } <img src="https://dummyimage.com/1x1/03ded7/" width="1500" height="200"> Is there a way to do here the scaling while maintaining the necessary proportions, without resorting to JS?
All pictures are of different sizes, there is an opportunity to do something with the substitution of plugs. Some pictures are smaller than the screen, some are larger. There is nothing besides the pictures, around the <p> with the text
imgtag there is nothing substantial.imglies inp,pwith pictures and texts form a long article. - Crantisz