On November 29, 2026, programmer Thomas Karpiniec published the results of an experiment on his blog, Serious Computer Business, showing that redacting text in an image that started out as a lossy WebP file can leave information about the hidden text spread across the entire image. With JPEG, the effect stayed just outside the black box, but with WebP, differences appeared even in unrelated headings and footer text. He advises against using lossy WebP source material for images that will be redacted and shared.
Source: Take care redacting WebP images (Thomas Karpiniec's blog)
The Experiment Compares "YES" and "NO" to Find Leftover Traces
Karpiniec used a document image designed to look like a mock case file. He saved an image containing the large word "YES" as a JPEG at quality 50, covered the word with a narrow black box extending only 2 pixels beyond the letter outlines, and saved the result as a lossless PNG. He repeated the same steps with an image containing "NO," then compared the pixel-value differences between the two redacted images, amplified 20 times.
If the redaction worked perfectly, the two images should be identical regardless of the word underneath. Any difference that does appear is information that originates from the covered text.
With JPEG, Traces Stayed Just Above and Below the Black Box
In the JPEG case, the differences appeared only in the bands immediately above and below the redaction box. Because JPEG compresses an image in 8x8-pixel blocks, the influence of the text stays within the same blocks as the text.
For that reason, a long-known mitigation for JPEG redaction is to extend the black box at least 8 pixels beyond the content being hidden. Karpiniec also describes this approach, noting that covering the full range of the affected blocks leaves no traces behind.
With Lossy WebP, Differences Showed Up Across the Whole Image
Karpiniec then ran the same experiment using lossy WebP (VP8) instead of JPEG. This time, the differences appeared not only around the black box but across the whole image, including the heading and footer text that had not been touched.
He says there is no obvious way to apply a redaction that would prevent this kind of leakage. According to him, lossy WebP lacks JPEG's convenient property of containing the influence within 8x8-pixel blocks. The blog post does not go into which part of the compression process is responsible.
WebP Compresses by Predicting Content From Surrounding Pixels
According to Google's developer documentation, lossy WebP uses VP8 key frame encoding from the VP8 video codec. It divides the image into segments called macroblocks, predicts the contents of each block from already-decoded pixels in its immediate neighborhood, and transforms and quantizes only the difference from the prediction (the residual). Block types include 16x16 and 4x4 luma blocks and 8x8 chroma blocks.
The documentation says this predictive coding is a main reason WebP beats JPEG on file size. Lossless WebP, meanwhile, is encoded using a different set of techniques. Karpiniec's experiment covers lossy WebP and does not address lossless WebP.
What Matters Is the Format of the Source Before Redaction
This affects anyone who redacts screenshots or document images before publishing or sharing them. In the experiment, traces remained even though the redacted result was saved as PNG, because the original image had been lossy WebP. In other words, what matters is not the format the result is saved in, but how the source material was compressed before it was redacted.
Karpiniec also cautions that image forensics is not his area of expertise and that he is not claiming it is necessarily easy to work out what lies behind an arbitrary redaction. Even so, he says the example shows that confidential information can leak through pixel differences, and that it is not a risk worth taking.
Our Take
Because WebP compresses by predicting from surrounding blocks, text in one place likely influences the prediction and quantization results of other blocks, spreading traces across the whole image. The very mechanism that makes files smaller than JPEG seems to work against redaction.
That said, the experiment is a single example comparing two words, "YES" and "NO," and seeing a difference is not the same as being able to recover unknown text. How much can actually be read will have to wait for further study.
Still, given the damage a leak of redacted information can cause, erring on the side of caution makes sense. Preparing the image to be redacted in a lossless format, or removing the sensitive text before it is turned into an image, is the safer approach.
Summary
Karpiniec's experiment shows that redacting an image derived from lossy WebP can leave traces of the hidden text across the entire image. The finding matters to people who publish redacted images and to organizations that share documents as images. He advises against using lossy WebP source material for images that will be redacted and shared.