Embed different photos without losing quality on the site

I have a lot of pictures, each of which is being shot in different sizes and with different devices. How can I put these photos in the same place without lagging or dropping quality?

Regarding the searches I had, I concluded that the best way to do this is to insert a file like Instagram before placing the photo by the user asking him to place the necessary part in the slider if the size of the photo is not appropriate and show the same part on the site. ? Is this the right method, and there are other optimal solutions?

And how does Instagram use it?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.