Take care redacting WebP images octet-stream.net · 13 points · 0 comments · HN t...
HN Best 200 @best
Take care redacting WebP images octet-stream.net · 13 points · 0 comments · HN thread
TL;DR The author shows that redacting a lossy WebP image can leak the hidden content, because VP8 compression spreads the influence of pixels across the whole image rather than within small blocks as with JPEG. A synthetic YES/NO test demonstrates that the redacted word can be inferred from the artifacts, so he advises against sharing redacted images derived from lossy WebP sources.
- JPEG redaction leakage is contained within 8x8 pixel blocks, so an 8px buffer around redacted content is generally safe for non-progressive JPEGs.
- WebP lossy (VP8) has no comparable 8x8 containment; compression artifacts extend across the entire image.
- In a synthetic test, a JPEG source saved at quality 50 with a narrow black box over YES or NO produced a deterministic artifact ring that differs between the two cases.
- The same test with lossy WebP produced differences visible across the whole image, with no obvious redaction method to prevent leakage.
- The author admits he is not an image forensics expert and does not claim it is easy to recover arbitrary redactions.
- Recommendation: avoid lossy WebP source material when redacting and sharing images.
Discussion No comments have been posted yet, so there is no discussion to summarize.
#imageRedaction #webp #privacy #jpeg #imageCompression #security