Email us

Image formats.

Every still you hand over trades size against quality, bit depth, transparency and who can open it. Here are seventy years of formats on one line, then one Cycles render from the Controls Kit pushed through all of them and measured, so the trade-offs are numbers, not folklore.

smaller: 16-bit PNG → AVIF
217×
each, same crop, below
2.6 KB
grey levels, 8 vs 16-bit
22 / 1,100
the first scanned photo
1957
SOURCESOURCE 115 KB PNG, lossless 340×340 crop · Cycles · 1:1
115 KBPNG, lossless340×340 crop · Cycles · 1:1
JPEGJPEG 2.6 KB PSNR 25.6 dB 8×8 blocks, banding, colour smear
2.6 KBPSNR 25.6 dB8×8 blocks, banding, colour smear
WebPWebP 2.6 KB PSNR 29.0 dB smoothed type, soft brass
2.6 KBPSNR 29.0 dBsmoothed type, soft brass
AVIFAVIF 2.5 KB PSNR 30.3 dB best here: clean edges, waxy flats
2.5 KBPSNR 30.3 dBbest here: clean edges, waxy flats
JPEG 2000JPEG 2000 2.6 KB PSNR 27.0 dB ringing and blur, no blocks
2.6 KBPSNR 27.0 dBringing and blur, no blocks
JPEG XLJPEG XL 2.6 KB PSNR 27.2 dB tuned for quality, starved here
2.6 KBPSNR 27.2 dBtuned for quality, starved here
GIFGIF 61.1 KB PSNR 38.2 dB 256 colours + dither, 23× the bytes
61.1 KBPSNR 38.2 dB256 colours + dither, 23× the bytes
The test
2.6 KB

The same 340 px crop (a brass PSI gauge: fine type, gradients, one hard needle) squeezed to the same 2,600-byte budget, about 0.18 bits per pixel. Starving the codecs shows how each one fails. PSNR is measured against the source: higher is closer.

ENCODED WITH PILLOW 12 (JPEG · WEBP · AVIF · JPEG 2000) AND CJXL · QUALITY BINARY-SEARCHED TO THE BUDGET · SHOWN AT 1:1, NO SMOOTHING
01

Seventy years on one line

who made it · why it exists · what it's still for
labs & firsts
desktop
the web
phones & codecs
//
1960
1970
1980
1990
2000
2010
2020
1957First digital imageRussell Kirsch · NBS

A 176×176 scan of his baby son on the SEAC computer.

1969The CCDBoyle · Smith · Bell Labs

Light becomes a grid of numbers. Nobel Prize, 2009.

1974The DCTAhmed · Natarajan · Rao

The discrete cosine transform: the maths inside JPEG and most video.

1975Digital cameraSteven Sasson · Kodak

0.01 megapixels, 23 seconds to record to cassette tape.

1984TGATruevision

Alpha channels for video cards. Still a games-texture habit.

1984Alpha, formalisedPorter & Duff, Lucasfilm

Premultiplied alpha and the “over” operation.

1986TIFFAldus (now Adobe)

16-bit, CMYK, layers: the print and archive workhorse.

1987GIFSteve Wilhite

256 colours. Animated from GIF89a. Wilhite said “jif”.

1990BMPMicrosoft · Windows 3.0

Raw pixels plus a header. Huge, read by anything.

1990PSDThomas & John Knoll

Photoshop 1.0 ships. Layers arrive in 1994.

1991Radiance HDRGreg Ward

RGBE: a shared exponent lets pixels pass white. HDRIs begin.

1992JPEGJoint Photographic Experts Group

8×8 DCT blocks. Thirty years on, still everywhere.

1996PNGBoutell et al. · W3C

Built because GIF's LZW was patented. Alpha, 16-bit.

2000JPEG 2000JPEG committee

Wavelets, no blocks. Lives on in cinema DCPs and medicine.

2001SVGW3C

Paths, not pixels, written as text. Sharp at any size.

2003OpenEXRILM · Florian Kainz

Float, many layers: the render standard (poster 03).

2004DNGAdobe

An open wrapper for camera RAW sensor data.

2010WebPGoogle

Stills from the VP8 video codec Google bought with On2.

2015HEIF / HEICMPEG · Apple from 2017

HEVC frames as photos. iPhone default since iOS 11.

2019AVIFAlliance for Open Media

Royalty-free AV1 stills. Smallest in the test above.

2022JPEG XLGoogle · Cloudinary

Re-packs old JPEGs ~20% smaller, losslessly. Support varies.

lossylosslessvector / layeredhistory
02

Five ideas to hold

everything else is detail
Raster vs vector

Pixels or instructions

RASTER · 12×12 = 144 numbersVECTOR · 4 points + 8 handles

Raster stores a colour per pixel, so it's fixed in size. Vector stores shapes, so it scales forever but can't hold a photo. Logos and UI are SVG. Renders and photos are raster.

Lossy vs lossless

What gets thrown away

← the first 9 of 64 DCT patternsevery 8×8 block = a mix of themlow quality keeps only the top-left fewkeptkeptkeptdropped

Lossless (PNG, TIFF, EXR) gives back every value. Lossy throws away what eyes miss first: fine detail and colour. Never re-save a lossy file as your master. The damage compounds.

Alpha

Straight vs premultiplied

STRAIGHTcolour stored as if opaque, alpha separate. PNG, TIFF, most design tools.
PREMULTcolour already × alpha. EXR, renderers, compositors. Mixing them up gives dark or bright halos at edges.

Porter & Duff, 1984: premultiplied makes “over” one multiply-add per pixel.

Bit depth

The same dark gradient, graded up ~3 stops

8-BIT · 256 LEVELS PER CHANNEL 22 distinct levels survive in this ramp → visible steps
8-BIT · 256 LEVELS PER CHANNEL 22 distinct levels survive in this ramp → visible steps
16-BIT · 65,536 LEVELS 1,100 levels → smooth after the grade
16-BIT · 65,536 LEVELS 1,100 levels → smooth after the grade
8-bit256 steps. Fine for delivery, but bands under a grade. JPEG, GIF, most web.16-bit65,536 steps. Masters, print, anything that will be graded. PNG, TIFF, PSD.
16 halffloat: values above 1.0 survive, so light can be hotter than white. EXR default.32 floatfull float for data passes: depth, position, vectors (poster 03).
Colour

An untagged file is a guess

Pixels are just numbers until a colour space says what they mean. sRGB (HP & Microsoft, 1996) is the web's default. Display P3 is wider, on phones. Print converts to CMYK. Embed the ICC profile, or another app will guess, and usually guess sRGB.

Linear vs display: renders are made in linear light. Only the delivery file gets the view transform (AgX, Filmic, sRGB curve).

03

Measured: the whole frame

2560×1440 · one Cycles render · 11 encodes
File size, log scale · quality noted where lossy
PNG 16-bit (source)13.9 MB · losslessBMP 24-bit11.1 MB · losslessTIFF 8-bit LZW6.9 MB · losslessPNG 8-bit1.7 MB · losslessWebP lossless1.3 MB · losslessJPEG XL lossless1.0 MB · losslessGIF 256 colours811 KB · 36.9 dBJPEG q85221 KB · 42.9 dBJPEG XL d1.0183 KB · 45.0 dBWebP q8091.1 KB · 42.0 dBAVIF q6063.9 KB · 42.9 dB

“Ship-it” settings: what you'd actually export. Around 42–45 dB PSNR is visually clean at 100% on this frame. Uncompressed BMP is 173× the AVIF.

Same 2.6 KB budget · ranked by PSNR
FormatBytesPSNR
AVIF2.5 KB30.3 dB
WebP2.6 KB29.0 dB
JPEG XL2.6 KB27.2 dB
JPEG 20002.6 KB27.0 dB
JPEG2.6 KB25.6 dB
GIF · can't reach budget61.1 KB38.2 dB

GIF can't hit the budget at all: palette + dither is lossless after quantising, so it costs 23× the bytes and still scores below lossy AVIF at full size. Animated GIF is worse. Ship loops as video (poster 04).

04

Pick one

by the job, not by habit

Photo / render on the web

AVIF + JPEG

AVIF first in <picture>, JPEG fallback. WebP if your pipeline can't do AVIF.

Logo · icon · UI

SVG

Vector, styleable, tiny. PNG only for apps that can't read SVG.

Screenshot · flat colour · text

PNG

Or lossless WebP. JPEG smears hard edges and flat fills.

Render output

EXR 16 half

Multilayer, DWAA or ZIP. 32-bit float only for data passes.

Print · archive master

TIFF 16-bit

With an embedded ICC profile. PSD if the layers matter.

Camera original

RAW / DNG

Sensor data before demosaic. Keep it, and grade from it.

Game / real-time texture

PNG → KTX2

Author lossless, and let the engine compress to GPU formats (BC7, ASTC).

Anything that moves

Not GIF

MP4 / WebM loop at a fraction of the size, with full colour.

05

Before you export

the boundary decides the format
Set the boundary firstfrom article 01 · Subdivide
  1. Where will it be seen: screen, print, game engine, or another artist's comp?
  2. Will anyone grade or edit it after you? Then deliver more bits than the screen needs.
  3. Does it need transparency, and do they expect straight or premultiplied?
  4. Is size a hard limit: email, page weight, app bundle, texture memory?
  5. Is it a photo, flat graphics, or data (depth, normals, masks)?
  6. What will the person at the other end actually open it with?

Sources and method

Measured: source products/Subdividers_Controls_Kit/hero/CROP_CLASSIC.png (Cycles, 2560×1440, 16-bit PNG, 13.9 MB), reduced to 8-bit for the lossy encoders. Pillow 12 for JPEG (4:2:0), WebP (method 6), AVIF (speed 4–6), JPEG 2000 and GIF (median cut + Floyd–Steinberg). cjxl effort 7 for JPEG XL. PSNR is computed over RGB against the 8-bit source. Banding: an 8–10% grey ramp quantised to 8 and 16 bits, then stretched 12.5×. Script: labs/image_lab.py.

History: NIST (Kirsch, 1957). Nobel Prize in Physics 2009 (Boyle, Smith). Ahmed, Natarajan & Rao, IEEE Trans. Computers, 1974. Kodak (Sasson, 1975). Porter & Duff, SIGGRAPH 84. Ward, “Real Pixels”, Graphics Gems II, 1991. ITU-T T.81 (1992). W3C PNG (1996) and SVG 1.0 (2001). ISO/IEC 15444 (2000), 23008-12 (2015) and 18181 (2022). ILM OpenEXR (2003). AOMedia AVIF 1.0 (2019).

The top of the Image formats poster.

Take the poster with you

Everything on this page as one tall poster, made to print or keep on a second screen. Free to use for your own learning and teaching.

Download the poster (PDF, 2.0 MB)

All nine posters are on the Academy page. They’re the start of The Subdividers Handbook, a printed boxset of our notes that we’re working on.