Take care redacting WebP images

TW_left_censored

29 November 2026 Suppose you are sharing an image and you want to redact the sensitive data first. You have to be careful if that original image was saved in a lossy format—the pixels of the redacted information can spread across the image as a result of the compression process. This is fairly well-known for JPEG, where the solution is also quite simple: the influence of the redacted content extends at most within 8×8 pixel blocks, so you are safe provided you maintain a minimum 8px buffer around the content you’re redacting. I was curious to try this out with WebP, and it turns out there is no such convenient 8×8 pixel containment. Here is a synthetic example. The original JPEG had a large word “YES”; this was saved at quality 50. That image…

Continue reading at Lobste.rs octet-stream.net
Advertisement