Hello, how knowing the parameters of the image (php getimagesize) to set the div'y in which the image is located, the same height as the image will have? while the image does not have a maximum length, but adapts to the screen extensions (i.e., max-width is 100%)
in other words, you need to make a block of the desired height as a lining for the image so that when entering the site it was not initially small and then increased as the picture was loaded