Lossy image compression can leave traces of information even after sensitive content is covered, because the original pixels may affect nearby pixels during encoding. The example compares JPEG and WebP using two otherwise identical images, one originally containing “YES” and the other “NO.” Each word is covered by a black box extending just two pixels beyond the letters, and the redacted images are saved losslessly so the comparison isolates effects from the original lossy compression. With JPEG, amplified pixel differences appear in narrow bands just outside the box. For non-progressive JPEGs, the influence is limited to 8-by-8-pixel blocks, so extending a redaction at least eight pixels beyond the sensitive area prevents that content from affecting visible pixels outside it.
Repeating the test with lossy WebP, which uses the VP8 format, produces a substantially different result: amplified differences appear across the image, including untouched heading and footer text. This means details under a redaction can alter pixels far from the covered area, and there is no comparable simple buffer that guarantees containment. The example does not establish that hidden text in arbitrary images can be recovered easily, but it demonstrates a potential leakage channel that makes lossy WebP unsuitable as material for secure redaction. Anyone preparing an image to share should avoid relying on a small cover-up over lossy WebP content; the visible redaction may not remove every trace of what was originally there.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.