November 24, 2026 · Cloudflare
Cloudflare Images - Automatic AVIF conversion with Polish
What changed
Cloudflare Images Polish AVIF: Polish converts origin JPEG and PNG images to AVIF alongside WebP.
Polish can now create AVIF versions of JPEG and PNG images served from your origin, alongside its existing WebP conversion. AVIF often produces smaller files than WebP, reducing transfer sizes and improving load times for image-heavy sites such as product catalogs, photo galleries, and news publications.
Polish automatically optimizes images on your zone that are served from your origin server. It strips metadata, applies compression, and can convert JPEG and PNG files to more efficient image formats.
Configure Polish with AVIF through the Cloudflare CLI, dashboard, or REST API:
cf zones settings edit polish --zone example.com --body '{"value":"lossy"}'
cf zones settings edit avif --zone example.com --body '{"value":"on"}'
cf zones settings edit webp --zone example.com --body '{"value":"on"}'
AVIF and WebP can be enabled at the same time. When both formats are enabled, Polish selects an output based on browser support, file size, and image quality:
- The browser must advertise AVIF support in its
Acceptheader. - Polish serves AVIF only if the converted image is smaller than the original.
- If the browser supports both AVIF and WebP, then Polish prefers AVIF.
- Browsers without AVIF support continue to receive WebP or the optimized original format.
Refer to Configure Polish and AVIF may be skipped for format selection and fallback behavior.
Free. Unsubscribe any time.