Image optimization
Serve JPEG, PNG, and GIF images as smaller WebP files to browsers that support them. None, Lossless, or Lossy, what it leaves alone, and how to check it works.
Image optimization makes your images smaller for visitors whose browser can show WebP, which is nearly every browser today. Your files stay as they are. Open your site, then Caching, then the CDN tab, and press Settings on the Image optimization card.
The three options
- None: images are served as you uploaded them. This is the default.
- Lossless: no visual quality impact. PNG and GIF images are converted to lossless WebP, so every pixel and every transparent area stays the same. JPEG images are converted at a high quality (90) that looks the same. The WebP files carry no metadata (camera, location, and the like).
- Lossy: may reduce visual quality. Every image is converted at quality 80, which is smaller than Lossless and can show small differences in fine detail. For a PNG or a GIF with flat colors or line art, the exact copy is smaller than a compressed one, and Lossy keeps the exact copy, so Lossy is never larger than Lossless.
Save Settings is off until you pick another option. Saving runs as a job, and the dialog shows it running and what it did. If the server could not take the setting yet, the dialog and the card say so in plain words, and images are served as they are until it can.
How WP Waterfall decides
A browser that takes WebP says so when it asks for an image. For that browser, WP Waterfall makes a WebP copy the first time the image is asked for, keeps it, and sends it only if it is at least 10% smaller than your original. If it is not smaller, the browser gets your original. A browser that does not take WebP always gets your original. The copy is made again when you replace the file.
Every image answer says Vary: Accept, so the CDN keeps one copy for WebP browsers and one for the others. To check a picture, ask for it the way a browser does:
curl -sI -H "Accept: image/webp" https://example.com/wp-content/uploads/2026/10/photo.jpg
content-type: image/webp and x-wpwaterfall-image: webp; original=227905; webp=40720 mean the browser gets the copy (here 82% smaller). x-wpwaterfall-image: original; not_smaller says why it did not.
What it leaves alone
These images are always served as they are, and x-wpwaterfall-image names the reason:
- files under 1 KB, files over 20 MB, and pictures over 40 megapixels or too big for your PHP memory limit (
tiny,large,pixels,memory), - animated GIFs (
animated), - CMYK JPEGs, 16 bit PNGs, and mirrored JPEGs (
cmyk,high_bit_depth,orientation), - pictures with a color profile that is not sRGB, because a WebP made here would show other colors (
color_profile), - a file the copy does not make at least 10% smaller (
not_smaller).
JPEG pictures that a phone took, turned by their EXIF orientation, are turned upright in the copy.
Where the copies are kept
In your site's cache folder, wp-content/cache/wpwaterfall-webp. It is a folder of its own, capped at 2 GB, and left out of backups. When it is full, images are served as they are. WP Waterfall never changes your original files. Because of that, "metadata is removed" is true of the WebP copies, and not of an original that is served as it is.
Good to know
- Changing the option clears your site's files at the CDN, so every visitor gets the new answer.
- Staging and preview environments have no CDN, so the option does nothing for them.
- If an image seems broken after a change, clear the CDN cache from the same tab, and tell support what
curlprinted. - Exclude files from CDN can leave an image out of the CDN: see Exclude files from the CDN.
Related
Still stuck?
Email support at wpwaterfall dot com with your site name and what you tried, or send us a message.