Use image CDNs to optimize images

Image content delivery networks (CDNs) are excellent at optimizing images for the web. Switching your website to an image CDN can yield a 40–80% savings in image file size, and in most cases they can optimize your images better than a build-time image optimization script.

What's an image CDN?

Image CDNs specialize in transforming, optimizing, and delivering images. You can also think of them as APIs for accessing and manipulating the images used on your site. For images loaded from an image CDN, an image URL indicates not only which image to load, but also parameters like size, format, and quality. This lets you create variations of an image for different use cases.