Redacting a Lossy WebP Leaks Across the Whole Image, a Developer's Test at Quality 60 Suggests
Software / news
Redacting a Lossy WebP Leaks Across the Whole Image, a Developer's Test at Quality 60 Suggests
Thomas Karpiniec found that JPEG leakage stays inside 8x8 blocks, so an 8-pixel margin protects it, but lossy WebP showed no such boundary.

Thomas Karpiniec, writing on the Serious Computer Business blog on November 29, reports that a black box drawn over text in a lossy WebP image leaves traces across the whole picture, not just beside the box. His advice: do not use lossy WebP files as the source for anything you redact and share.
The post is one developer's experiment, and he says he is not an image forensics expert. It is still a concrete, checkable warning about a habit many people have: screenshot, annotate, post.
The test
Karpiniec made a synthetic image containing either the word "YES" or "NO". He saved it as a JPEG at quality 50, covered the word with a black box that extended only 2 pixels past the glyphs, then saved the result as a lossless PNG. Subtracting the two PNGs and amplifying the difference 20 times showed a repeatable ring of artifacts just above and below the box. In principle, that pattern could reveal which word was underneath.
He then repeated the test with lossy WebP at quality 60. The differences appeared across the whole image, including the untouched heading and footer.
| Source format | Quality tested | Where the leak showed |
|---|---|---|
| JPEG | 50 | Ring just outside the box, inside 8x8 blocks |
| Lossy WebP | 60 | Across the whole image |
Why JPEG has a safe margin and WebP does not
For JPEG, Karpiniec says the leak is confined to 8x8 pixel blocks, so a redaction box with at least 8 pixels of buffer around the sensitive content is safe. For lossy WebP he found no comparable containment.
The post does not explain why. The format specification gives context but not proof. RFC 9649 says lossy WebP is "achieved using VP8 intra-frame encoding". RFC 6386, the VP8 specification, says a macroblock is 16x16 luma pixels, that intra-coded macroblocks are predicted from already-decoded macroblocks in the same frame, and that a loop filter is applied to the entire frame. Prediction from decoded neighbours and a frame-wide filter are plausible routes for information to travel, but neither document describes redaction leakage, and Karpiniec does not claim that mechanism.

What to do before sharing a redacted image
The practical rules from the post are short:
- If the original is a JPEG, extend the redaction at least 8 pixels beyond the sensitive text.
- If the original is lossy WebP, avoid it as a source. Retake the screenshot as PNG or another lossless format, then redact.
- Redact the lossless copy, not a recompressed one.
Karpiniec names no software, no CVE and no real-world case of recovered text. He says recovery is not easy, and argues for avoiding the risk rather than counting on it being hard to exploit. No independent reproduction of the test appears in the sources listed below.
That leaves an open question for tools that export WebP by default. Browsers and screenshot utilities that save lossy WebP are not named in the post, so which of them produce risky files is untested here. Anyone handling sensitive screenshots can check the file type first.
For other recent cases of images and apps that did not behave as users assumed, see the site's report on 19 fake Meta Ads Manager apps and the usb2shell kernel flaw.
Sources
More in Software
- 01Willison Says SVG-Writing LLMs Beat Image Models; His Kākāpō Poster Drew PushbackSimon Willison argues editable code beats pixels for diagrams and posters. A 415-point Hacker News thread agreed on editability and attacked the sample's anatomy.
- 02Gemini Tool Retrieval Arrives a Year After Claude's, With No Published NumbersGoogle's preview defers tool schemas the way Anthropic's tool search does. Anthropic's docs give a 55,000-token example and an 85 percent saving; Google's post gives neither.
- 03GameMaker Copies Godot's AI Contribution Rules, Down to the 15-Line LimitThe commercial engine's source-available release comes with a policy that bars AI agents from opening pull requests and AI text from discussions.
- 04Draftmux, an MIT-Licensed Editor for Agent-Written PR Text, Has 170 Stars and 10 ReleasesRaine Virta's tool forks your Claude Code or Pi session to draft GitHub and Slack messages beside a live preview. Hacker News gave it 222 points and a fair amount of scepticism.