I have a website that displays a photo gallery of pictures for the end-user. I want to make the website fast in uploading images based on the user's device size.
For example, if they are on a desktop with a high pixel ratio, the image displayed would be a very large high quality image. However, if they are on a mobile device, the image doesn't need to be large pixels, and instead the website would produce a significantly smaller sized image.
Please note, I'm not attempting to resize an image based on screen size. I want the website to produce the same image but different file sizes. Even if that means me uploading 10 different sizes of the same image to the server. I'm guessing it means changing the scr based on screen size.
Hope that makes sense, thank you for your help!