Skip to content
Read the docs

Output formats

Formats

Pixlane writes AVIF, WebP, JPEG and PNG. With f_auto you never choose: the browser tells us what it can decode and we answer with the smallest file that looks the same.

What f_auto does with an Accept header

Browser sendsPixlane answersTypical clients
image/avif,image/webp,*/*AVIFChrome, Edge, Firefox, Safari 16.4+
image/webp,*/*WebPSafari 14–16.3, older Android WebViews
*/* or no headerJPEG, or PNG if the original has transparencyE-mail clients, feed readers, curl

The response always carries Vary: Accept, so a CDN placed in front of Pixlane keeps the variants apart.

Measured on our own samples

Four photographs from this site, encoded with q_auto. These are the byte counts of the files your browser can download from this page, not a benchmark we ran once and rounded.

Original640 px wide1280 px wideAVIF saving
at 1280
JPEGAVIFJPEGAVIF
samples/harbour.jpg103 kB40 kB345 kB115 kB−67%
samples/pass.jpg115 kB48 kB411 kB152 kB−63%
samples/market.jpg110 kB40 kB343 kB99 kB−71%
samples/lighthouse.jpg86 kB36 kB308 kB117 kB−62%
Market fruit stall
AVIF f_avifSmallest files for photographs, 10-bit colour, alpha, wide gamut. Slowest to encode, which is why we cache every variant for a year.
Lighthouse against a blue sky
WebP f_webpThe fallback for browsers from 2020–2022. Roughly a quarter smaller than JPEG; smooth gradients such as skies can band at low quality, so q_auto is more careful here.
Hairpin road below a mountain pass
JPEG f_jpegDecodes everywhere, including e-mail. Pixlane writes progressive JPEG with optimised Huffman tables and 4:2:0 chroma above quality 60.

Things we decided for you