One switch for every image on your site
Image optimization is a switch for your whole account or a single delivery rule. The edge converts JPEG and PNG images to WebP, or to AVIF and WebP if you choose WebP + AVIF for the account, and each browser gets a format it accepts; browsers that accept neither get the image in its original format. With WebP + AVIF the answer comes from the same URL, with Vary: Accept; with WebP alone, browsers that accept WebP are redirected to a .webp copy. Either way your HTML keeps the same image URLs.
At full size, a newly converted image goes out only when it is smaller than the original. If a conversion fails, the edge serves the original image instead. Processing counts toward your monthly quota.
The right size for every page
Add ?w= (width), ?h= (height) or both to an image URL and the edge returns that size. One value keeps the aspect ratio; both fit the image inside that box. An image is never enlarged beyond its original size.
So one original serves a product page, a listing thumbnail and a mobile layout: product.jpg?w=1200 for the page, product.jpg?w=400 for the list. Each size is cached at the edge as its own copy. Resized images are converted to WebP or AVIF too.
One original, three sizes
<img src="https://cdn.example.com/products/shoe.jpg?w=1200" alt="Shoe">
<img src="https://cdn.example.com/products/shoe.jpg?w=400" alt="Shoe">
<img src="https://cdn.example.com/products/shoe.jpg?w=200&h=200" alt="Shoe">
Account-wide or one rule at a time
Turn on Account-wide image optimization on the Optimization tab of Domains & Rules, or turn it on in one delivery rule to start with a single folder or domain. The format is set once for the account under Image format: WebP, or WebP + AVIF (automatic).
Converted images are kept at the edge and in browsers for 365 days. Changing the format needs no purge: the edge stores each format separately. After you first switch optimization on, purge the images that were already cached so they are converted on the next request.
Works where your images already are
The edge fetches originals from your server on a Pull CDN account, or from your storage on a Push CDN account, so images uploaded to our CDN file storage are converted the same way. WordPress, WooCommerce, OpenCart or a custom site: nothing runs on your server and no image URL changes.
The image format check on the Optimization tab lists, image by image, what a modern browser and a plain client receive. The free image format checker does the same for any public page.
Billing you can follow
There is no separate image package. Processing counts toward the account's monthly quota like traffic: each conversion counts the original it reads plus the image it returns, and AVIF counts at a higher rate than WebP because encoding it takes more work. The panel shows the current rate under the switch, and Data Consumption shows image optimization as its own line.
How to set it up
Step-by-step guides in the help centre:
Image CDN FAQ
What is an image CDN?
A CDN that does more than cache images: it converts them to modern formats and resizes them at the edge, close to the visitor. Our guide What is an image CDN? explains how it works.
Which image formats are converted?
JPEG and PNG files (.jpg, .jpeg, .png) are converted to WebP, or to AVIF and WebP with WebP + AVIF. GIF, SVG and files that are already .webp go out as they are.
Do I have to change my image URLs or install a plugin?
No. Your HTML keeps the same image URLs and nothing runs on your server. For WordPress, the free CDNTR plugin is there if you also want the CDN hostname written into your pages.
Can I resize images through the URL?
Yes. Add ?w=, ?h= or both. One value keeps the aspect ratio, both fit the image inside that box, and an image is never enlarged beyond its original size. Keep w and h in the rule's cache key, which the default does.
Should I choose WebP or WebP + AVIF?
WebP reaches almost every browser in use. WebP + AVIF adds AVIF for the browsers that accept it, usually the smallest format for photographs. Our AVIF vs WebP guide compares them with measured bytes.
How is image optimization billed?
It counts toward your monthly quota: the original read plus the image returned, AVIF at a higher rate than WebP. The panel shows the rate under the switch, and Data Consumption shows image optimization separately.