How PNG's 2025 Update Carries HDR Brightness
On June 24, 2025, the World Wide Web Consortium (W3C) published the PNG Third Edition as a Recommendation. It gave PNG a standard way to signal high dynamic range, or HDR. A small block of information called cICP tells a viewer how to relate the picture's stored numbers to light. In a photograph of a sunlit window from inside a dim room, that relationship gives the window light room to look brighter than ordinary white on a screen that can reproduce it.
The window is a useful reference because the shaded room and the bright sky share the same frame. A picture that carries that span still has to pass through an app and a screen. The PNG Third Edition specification distinguishes the image the file stores from the image the viewer delivers. The path between them explains why the window can look different in two previews of the same file.

What does cICP add to the pixel data?
In a color photograph, a pixel has samples for red, green, and blue. A sample is the number for one channel at that spot. The samples for the window and those for the inside wall can be recovered when an app opens the PNG. The color information tells the app what those numbers represent. In the file, the compressed image data and the color description sit in separate blocks, which the specification calls chunks.
Chris Lilley, a W3C editor of the PNG Third Edition, explains the purpose of the new chunk this way: "The CICP specification allows labelling of what color space is used for a given image." A color space gives the app a fixed meaning for the combination of red, green, and blue it reads at each pixel. With a different color space, the same combination of numbers can describe a different color or intensity.
Lilley shows what a label can change with two versions of a David Revoy illustration. For the demonstration, the artwork was converted to a wide-gamut color space and exported without an embedded profile. One version got a cICP label for that space. The other kept the same color samples without the label and looks washed out in Lilley's comparison. The color-gamut demonstration isolates a step an HDR image also depends on: the viewer needs to know which set of rules goes with the picture values before it can reproduce what the editor saw.
The W3C specification gives cICP four fields of one byte each. The primaries field identifies the reference red, green, blue, and white associated with the image's color space. These determine its gamut, or range of colors. The transfer function identifies the relationship between the stored values and light. Both fields matter at the window: the first helps the viewer interpret the tint of the sky, and the second helps it interpret the intensity.
The other fields come from the same scheme used to label video signals. The matrix field identifies how color components would be converted to red, green, and blue. The W3C sets it to zero in PNG because the color data is already expressed in RGB. The range flag tells the viewer whether reference black and nominal peak white sit at the ends of the available scale or at points inside it. The transfer function works from that scale, so interpreting the range comes before deriving light from the sample value.
- Color primaries
- Define the reference colors and white used to interpret the tint of the sky.
- Transfer function
- Supplies the rule that relates the stored sky samples to light.
- Matrix coefficients
- Signal that the color components are already expressed in RGB.
- Video full-range flag
- Locates reference black and nominal white on the sample scale.
That description also has a place in the decoder's order of operations. The W3C gives cICP first priority among color chunks when the decoder understands it. A file can also carry other color information, such as an embedded profile from the International Color Consortium. The priority tells the viewer which description to use if it can read both. An app that skips cICP can still recover the picture data; it loses that particular interpretation of the samples.
The early stages of reading the picture work much as they did before. The W3C describes a reversible filter applied to rows of samples before compression. After decompressing the image data, the decoder reverses the filtering to recover those samples. That is the lossless part of the format. It protects the encoded difference between neighboring pixels along a cloud edge. The color processing that follows determines how visible that difference will be once the pixels become light again.
How does a stored value become light?
The transfer function is the rule that relates image samples to light. In a display, luminance measures the light emitted toward the viewer from a given area. A sample halfway up the numerical scale can produce much less than half the display's peak luminance. Lilley's explanation pairs a graph of several curves with an ordinary monitor example. Equal steps in the stored numbers can produce different changes in light, depending on where those steps fall along the curve.
On the ordinary monitor in Lilley's example, a value of 127 on a scale from 0 to 255 would yield about 21 percent of the full light output. That numerical midpoint sits closer to the dark end of the display's light scale. A viewer reading the photograph has to perform the equivalent translation for every pixel, from the darker grain of the wood to the edging of a cloud near the bright end. Following the wrong curve changes the relationship among those features across the whole picture.
The W3C specification names perceptual quantizer (PQ) and hybrid log-gamma (HLG) as the HDR options. With PQ, the curve describes a target luminance on an absolute display scale. That gives the viewer a brightness target for the window highlight even if the screen ultimately has to adapt it. HLG starts from relative light in the scene. Its rendering can take account of the display when turning those relative values into emitted light. Both can carry the separation between shade and a much brighter highlight; they start from different points of reference.
The specification's full-range examples make it possible to isolate just that choice. The PQ and HLG examples use matching color primaries, matching matrix settings, and the same full-range flag. Only the transfer field changes. That single difference is enough to tell the viewer to use a different curve before it renders a pixel. A wide gamut can describe a more saturated patch of blue sky; the HDR curve can describe a higher intensity for a bright patch beside it.
Scroll sideways to see all columns.
| Transfer function | What the signal refers to | What rendering does |
|---|---|---|
| PQ | Absolute target light from a display | Adapts that target to the screen when necessary |
| HLG | Relative light in the scene | Maps the scene signal to the brightness of the display |

Why does the same window look different in another preview?
An ordinary standard dynamic range (SDR) preview has a smaller span of light available. In Lilley's explanation, the white used for ordinary picture content also sits at the top of the SDR display range. HDR makes room above that white. In the window photograph, a white curtain can stay near ordinary white while a reflection on the glass reaches farther above it. That distinction works only when the viewer reads the signal and the screen has the extra brightness to set the reflection apart.
The W3C CSS Working Group's draft on HDR color calls the ratio of peak luminance to reference white linear HDR headroom. That ratio depends in part on where reference white sits under current viewing conditions. A screen can also sustain a stronger peak on a small area for a short time than over much of the picture. The draft illustrates the idea with a reference display that can put a brief, bright accent above white. A glint and a broad view of sky put different demands on a screen even when the file describes similar peak values.
The same draft describes a web page with a grid of photographs, including a shot straight into the sun. A layout like that can call for limiting the brightness of the previews so that the sunlit shot can sit next to other photographs without overwhelming them, while keeping more separation in the lights than an SDR presentation would allow. That's a decision made for the page as a whole, after the file has supplied the information needed to interpret each photograph.
When the encoded brightness outruns the screen, a viewer can use tone mapping, an adjustment that fits the image's range of light to the display. Crowding all the brightest values up against the screen's ceiling can erase the difference between nearby shades. This is clipping. Compressing the brightest part of the range can preserve some separation there at lower brightness. The specification leaves the choice of tone-mapping method to the implementation, so matching source files can produce different previews even when both apps understand HDR.
There can be more help in the file. Content Light Level Information, stored in the cLLI chunk, can describe how bright the brightest part of the content is and give information about average brightness. A small glint at the window and an image full of bright sky can have similar peaks but differ substantially in average light. A separate chunk, Mastering Display Color Volume (mDCV), describes the range of light and color of the display used to prepare the picture. It gives the rendering system another basis for judging what its own screen can show.
Lilley demonstrates the distinction with a documented PNG test pattern. His inspection of the file identifies the PQ transfer function in cICP and a maximum content light level of 10,000 candelas per square meter in cLLI. That figure is part of the file's description of the test pattern. The screen's own peak brightness sets the limit on what the test pattern can actually put in front of a viewer. The same distinction applies at quieter scales, to the point of a reflection or the bright edge of a curtain.
Scroll sideways to see all columns.
| What the file carries | What the viewer and screen deliver |
|---|---|
| Window and wall sample values | A reconstruction of the picture for the output device |
| Color space and light curve in cICP | Interpreted color and brightness when the viewer reads cICP |
| Peak content light level, if supplied | Highlights adjusted to fit the screen's available range |
| Mastering display characteristics, if supplied | A rendering that can account for differences between the two displays |
The distinction matters whenever a preview stands in for the file, such as when a publisher checks an image in a thumbnail before it runs at full size. An exported SDR copy with highlights already clipped has lost the stored differences at the bright end. An HDR original shown through a limited preview can keep them in its image data. At the window, the reflection in the glass can still be recorded as brighter than the fabric even when the preview brings them close together.
Frequently Asked Questions
Does PNG support HDR?
Yes. HDR is one use of the new signaling. The W3C also gives an example of using cICP to identify the Display P3 color space for SDR, so the chunk can be present in a PNG whose color range is wider than the usual web space while its brightness still follows an SDR curve.
What is the bit depth of a PNG image?
The W3C allows truecolor PNGs to store 8 or 16 bits per sample, depending on the file. Bit depth measures how many bits are available to describe each channel value. The separate transfer function determines how those steps correspond to light.
What does cICP stand for in PNG?
The W3C calls the codes coding-independent code points. They come from an International Telecommunication Union specification for identifying video signals. In the PNG chunk name, the lowercase first letter marks the chunk as ancillary: a decoder is allowed to skip it and still read the core picture data.
Where does the cICP chunk go in a PNG file?
The W3C requires cICP to precede any PLTE palette chunk and the IDAT image data chunks. The header, IHDR, comes first. That places the color description ahead of the compressed samples it helps the app interpret.
Sources
- World Wide Web Consortium: Portable Network Graphics (PNG) Specification (Third Edition)
- World Wide Web Consortium: Portable Network Graphics (PNG) Specification (Third Edition) is now a W3C Recommendation
- Chris Lilley: cICP in PNG, explained
- World Wide Web Consortium: CSS Color HDR Module Level 1 (November 17, 2026 Working Draft)