As I work on creating a website in React for a company, my main focus is on developing a drive repository where users can upload files. One issue that has arisen is the performance of the "photos" folder, as it contains numerous high-resolution images that are causing the website to slow down when displaying previews. My intuition tells me that implementing image compression during the upload process, and saving lower resolution versions for preview purposes, would be the most efficient solution. Alternatively, I am curious if there is a way to obtain a low-resolution version of an image given its URL.