Image Optimizer transforms images on the fly at the edge: resize, format conversion (WebP / AVIF), quality, crop, and more. You ship one master file to your origin and the CDN serves the perfect variant per device.Documentation Index
Fetch the complete documentation index at: https://docs.tenbyte.io/llms.txt
Use this file to discover all available pages before exploring further.
How it works
The query string is part of the cache key, so each variant is cached independently after the first miss.Enable Image Optimizer


URL-based transforms
Append query parameters to any image URL.| Parameter | Values | Example |
|---|---|---|
width | px | ?width=800 |
height | px | ?height=600 |
format | auto, webp, avif, jpeg, png | ?format=webp |
quality | 1–100 | ?quality=80 |
fit | cover, contain, fill, inside, outside | ?fit=cover |
dpr | device pixel ratio | ?dpr=2 |
format=auto picks WebP / AVIF based on Accept header; falls back to the original.
Recipes
Responsive image
Avatar thumbnail
High-DPI screen
Verify a transform
Framework integration
Drop straight into your front-end framework. Per-framework guides:Turn off

/photos/* to flush them immediately.
Operational tips
- Master in a high-quality format — JPEG quality 90 or PNG. Let the optimizer downscale; never upscale.
format=autoeverywhere — covers AVIF-capable Chrome, WebP for everything else, JPEG for old Safari.- Cap
width— limit the transform to widths you actually use (sizes attribute). Otherwise attackers can hammer the edge with?width=Nfor every N. - Watch the cache. Each
(width, height, format, quality, dpr, fit)tuple is a separate object. Define a small set in your component layer. - Pair with cache rules — long TTLs on
/photos/*since transforms are deterministic per query.