# IMAGE_ROLES

```ts
const IMAGE_ROLES: readonly ["avatar", "thumbnail", "tile", "rail", "card", "office", "gallery", "dialog", "fullscreen", "hero"];
```

Defined in: packages/asset-client/dist/index.d.ts:757

Role ladders: which transform widths each image role asks for.

One list per role, owned here so the storefronts that render the image and
the service that warms it at upload read the SAME numbers. A rung nobody
warms is a cold encode (0.5–4 s) on the first visitor; a rung nobody renders
is stored for nothing.

Derived from a measured audit (doc 2 K185, 2026-10-17): displayed CSS width ×
DPR on 10 viewports × 4 DPRs, picking the fewest rungs that keep the served
image within +20% of the needed pixels. The overshoot that remains comes
from gaps in [TRANSFORM\_WIDTHS](/api/nitida/sdk/variables/transform_widths/) (2560 → 3840, 96 → 128), not from the
choice of rungs. The 19-rung union is [IMAGE\_LADDER](/api/nitida/sdk/variables/image_ladder/).