Shopify does
Stores images on a global CDN, creates resized versions on request and serves WebP to browsers that support it.
You still need to
Upload sensibly sized, compressed files, name them well, add alt text and make sure the theme requests the right sizes.






