Summary
- RFC 9649 defines how WebP container bytes are reconstructed — but the media type, the magic sequence and a clean decode authenticate nothing about metadata, provenance or visual meaning.
- Readers should ignore unknown chunks; writers should preserve them unless they mean to change them. Interpretation, custody and endorsement are three separate decisions wearing one filename.
- A defensible media record joins the original bytes and chunk inventory to decoder version, resource policy, metadata selection, decoded pixels, animation timing, derivative bytes and the final observed render.
A perfect picture is not a complete record
The image opened without a flicker. Same dimensions, same colours, same smiling face staring back from the approval queue. Every visible pixel had survived the trip intact. And the one chunk that proved where the file came from — who made it, when, under what custody — had quietly walked out the door.
That is the trap at the heart of RFC 9649, the specification that finally handed WebP a stable public grammar and registered image/webp. It describes a RIFF container that can carry lossy VP8 data, a lossless bitstream, transparency, colour profiles, animation, EXIF, XMP and application-specific chunks. It tells any reader on earth how to turn a pile of bytes into a canvas. It says almost nothing about whether the canvas is telling the truth.
Two files can decode to identical visible pixels while carrying different metadata or unknown chunks. Two readers can accept the same bytes while picking different short-frame timing or background treatment. A perfectly valid file can still drive a decoder into dangerous memory, CPU or parser behaviour. A media-type label names the grammar; it does not authenticate who created the file or whether any embedded claim deserves your trust.
The institutional mistake is letting a successful render inherit every missing conclusion. “The image opened” becomes “the object is safe.” “The pixels match” becomes “the provenance survived.” “The metadata is present” becomes “the claim is true.” RFC 9649 signs off on none of those promotions.
Reconstruction and custody follow different rules
The extended format draws one distinction worth pinning to the wall. Chunks required for reconstruction and colour correction must appear in the defined order — depending on the file, that sequence runs through VP8X, ICCP, ANIM, ANMF, ALPH, VP8 and VP8L. Get those out of order and a reader should fail.
Metadata and unknown chunks get far more rope. EXIF, XMP and application-specific chunks may sit outside the reconstruction order. Unknown chunks may appear at the end of the file or at the end of an animation-frame payload. Readers should ignore them. Writers should preserve them, in their original order, unless they deliberately intend to change them.
That asymmetry is not a loophole — it is an extensibility design. A reader shipped today can display tomorrow’s file without pretending to understand a future chunk. An editor can rewrite the visible image without silently destroying application data it never knew existed. But the same rule exposes a governance boundary. Ignoring a chunk is not a finding that it is harmless or irrelevant. Preserving one is not a finding that it is accurate, authorised or safe for the next application to interpret.
So every transformation service makes at least three decisions at once: which bytes it understands, which uninterpreted bytes it will carry forward, and which bytes it will strip or rewrite. A final file hash records the result of those decisions. It cannot explain them.
Metadata can be present without becoming truth
WebP can carry EXIF and XMP. RFC 9649 says there should be at most one chunk of each type; if duplicates show up, a reader may ignore every instance except the first. That modest rule matters enormously in an evidence chain. A tool that keeps the first block, a tool that rewrites one canonical block and a tool that strips all metadata can each produce a decodable image. Their visible output may be pixel-identical while their assertions quietly disagree.
CIPA’s Exif specification defines one metadata structure. Adobe’s XMP specifications define another extensible model and the ways to embed it. Neither container mechanism authenticates a single value. Camera name, creation time, author, location, edit history and rights fields remain claims whose source, signing context and custody must be judged separately.
This is where Lu Heng’s Reality Layers earns its keep. Stored bytes, parsed fields, asserted provenance, decoded pixels and reader belief sit side by side — but they are not one reality. A metadata tag can exist without being accurate. Accurate metadata can be stripped while the pixels never move. A byte-identical original can be rendered under a different colour or compositing policy and look like a different picture to anyone who cares.
Invisible colour is still data
The lossless format restores ARGB pixel values exactly — including the colour values of pixels whose alpha is zero. A fully transparent pixel contributes nothing visible when composited normally, but its red, green and blue components have not ceased to exist. Invisible is not the same as absent.
This is not a claim of hidden messages in any particular file. It is a reason to stop equating the two. A later operation may drop alpha, drop the image onto an unexpected background, use those colour channels during processing or transcode them differently. A privacy scrubber that only looks at the rendered picture can walk straight past information that a byte or decoded-pixel inspection would have caught.
The same distinction cuts the other way. If an optimiser normalises colour under transparent pixels, the displayed result may stay identical while the decoded pixel matrix quietly changes. “Lossless” describes the specified codec round trip. It does not promise that every later editing service preserves the entire original container, every metadata claim or every application-specific byte.
One animation can have several observed timings
An animated WebP frame carries position, dimensions, duration, blending and disposal instructions. The stored frame duration uses milliseconds, but RFC 9649 leaves a duration of zero — and often a duration of ten milliseconds or less — to implementation interpretation. Plenty of browsers and tools apply a minimum.
The background colour illustrates the same bounded authority. It may contain non-opaque alpha even when the alpha feature flag is unset, and viewers should treat it as a hint rather than a mandatory display value. Blending and disposal decide how one frame rearranges the canvas before the next arrives.
So the byte sequence is not a complete observation of the performance. To make a real claim about what a user saw, record the reader, the version, the timing normalisation, the colour management, the compositing background, the playback conditions and the captured output. A format-level instruction and a human-visible event are joined by software policy — and that policy is where the truth lives.
Validity is not a decoder safety verdict
RFC 9649’s security section is unusually direct. Demuxing and decoding can expose integer overflow, out-of-bounds reads and writes, uninitialised data, null dereferences, memory or disk exhaustion and extended computation. Inputs reach browsers, mail clients and servers that accept uploads. The consequences can include code execution, information leakage, crashes and denial of service.
The format has no active-content mechanism. That does not make its processing passive. Canvas dimensions drive allocation. Animation multiplies frames and work. Prefix codes, transforms and compressed image data drive parser state. EXIF, XMP and custom chunks may reach additional interpreters, each with its own attack surface.
A receiver therefore needs a safety receipt that is independent of syntax acceptance: decoder library and version, process isolation, memory and time limits, maximum dimensions and frame count, metadata parsers invoked, error result and any derivative produced. A file that conforms to the grammar can still be rejected by local resource policy. A malformed file can sometimes be partially displayed by a tolerant implementation. Neither behaviour should be silently promoted into a universal format judgment.
Build a byte–chunk–render receipt
Begin with custody. Hash the exact received object, record its byte count, transport content type, filename claim and any independent type sniffing. Parse the RIFF boundaries without yet declaring the object safe. Record every chunk’s FourCC, offset, declared size, padding and order.
Then classify each chunk: required for reconstruction, recognised metadata, recognised application data, or unknown. Record whether the current operation understood, ignored, preserved, stripped, reordered or rewrote it. For duplicate EXIF or XMP, state which value was selected. For VP8X, retain canvas dimensions and feature bits; for animation, retain frame rectangles, durations, blend and disposal modes.
Run the decoder inside a bounded environment and record its identity, version and resource policy. Hash decoded pixels or individual frames where that is the relevant comparison. Record ICC handling, alpha policy, compositing background and duration normalisation. If an optimiser or editor creates a derivative, give that object its own hash and repeat the chunk inventory — stop calling it “the same image.”
Finally, observe the delivery surface. Record which object the browser or application fetched, which decoder handled it, whether every frame played, and which visual result was captured. Running-Code Primacy supplies the discipline: the registered grammar matters, but the executed reader and the observed output decide what actually happened.
Keep the specification small and the local decisions visible
RFC 9649 does not need to become a provenance constitution. Its strength is the bounded byte and reconstruction contract. Minimum Initial Specification explains why that restraint matters: standardise only what must interoperate, then keep future and local choices explicit.
One organisation may strip all metadata on public delivery. Another may preserve unknown chunks for archival custody. A third may reject animation, impose smaller canvas limits or require a signed external manifest. Those are all legitimate local policies — provided they are named, versioned and observable. They turn dangerous the moment they hide behind a generic “optimised” or “sanitised” label.
The governing sentence is narrow, and worth memorising. RFC 9649 can prove that bytes satisfy a shared WebP grammar. It cannot prove who authored their claims, which uninterpreted data still matters, whether the decoder ran safely, whether a transformation preserved custody, or what a person finally saw. Those conclusions need receipts from the systems that actually made them — and a green thumbnail is not a receipt.
Sources
- Lu Heng — Minimum Initial Specification
- Lu Heng — Reality Layers and Symbolic Power
- Lu Heng — Running-Code Primacy
- IETF Datatracker — RFC 9649 history
- RFC Editor — RFC 9649 information
- RFC 9649 — HTML
- RFC 9649 — canonical text
- RFC 9649 — XML source
- RFC 9649 — errata search
- IANA — media types
- RFC 2046 — media types
- RFC 6838 — media type specifications
- RFC 6386 — VP8 data format
- RFC 4648 — Base-N encodings
- RFC 2781 — UTF-16 and byte order
- RFC 2083 — PNG specification
- CIPA — Exif 2.3
- Adobe — XMP specifications
- libwebp — container specification source
- libwebp — lossless bitstream specification source
Member Briefing
Read the full trend briefing
Members read the full briefing with the source notes behind every finding.
Strategic Circle
A daily briefing in your language, built from changes we have verified.
Join for USD 20/monthCancel anytime.
Members also get the full research library, a daily briefing on the networks they follow and the private forum.






