Tamper-evident Image using JPEG Fixed Points

Zhaofeng Si, Siwei Lyu · DOI

Abstract

This paper provides a rigorous mathematical proof for the long-observed phenomenon that repeated JPEG compression eventually reaches a "fixed point" where pixel values stabilize. By leveraging this property, the authors propose a novel, zero-overhead method for creating self-authenticating images. Any subsequent manipulation of a fixed-point image disrupts this stability, allowing for precise tamper localization through a single additional round of JPEG compression.

Introduction

In the current digital landscape, verifying image integrity is paramount. Traditional solutions like digital watermarking and fingerprinting (e.g., C2PA metadata) face significant hurdles: watermarks can degrade image quality or be easily stripped, while fingerprints require external databases for verification.

Forensics experts have empirically noted that repeatedly saving a JPEG with identical settings eventually leads to a stable state. This paper formalizes this observation with a mathematical proof of convergence and utilizes it to develop a self-authenticating image format that requires no hidden signals or external metadata.

The JPEG Fixed Point Theorem

The researchers modeled the JPEG compression and decompression pipeline—encompassing the Discrete Cosine Transform (DCT), quantization, inverse DCT (IDCT), rounding, and truncation—as a mathematical sequence applied to 64-dimensional vectors (8x8 pixel blocks).

By treating the JPEG transform as a function mapping a finite set of 8-bit image blocks to itself, they analyzed the projection properties of quantization and rounding. Their proof demonstrates that the error between consecutive compression cycles strictly decreases or remains constant. Given the finite nature of pixel values, the sequence is guaranteed to converge to an exact mathematical fixed point in a finite number of steps.

Practical Application: Self-Authenticating Images

To generate a tamper-evident image, an original image is repeatedly processed through the JPEG transform until it reaches its fixed point. At this stage, applying the same JPEG compression again results in zero pixel changes.

This property serves as a built-in integrity check. If a third party modifies the image (e.g., through splicing or copy-move operations), the fixed-point state is disrupted in the altered regions. A receiver can verify the image's authenticity simply by performing one round of JPEG compression; any 8x8 blocks that show pixel changes are immediately identified as tampered.

Key Results and Validation

Experiments conducted on a dataset of one million random 8x8 blocks confirmed the theoretical predictions. The $\ell_2$ distance between consecutive iterations reliably dropped to zero across various compression quality levels.

Figure 1: Visualization of the convergence process. As iterations increase, the number of changing pixels (Pixel Count) and the average $\ell_2$ difference drop to zero, reaching a fixed point.

Crucially, reaching the fixed point does not significantly degrade visual quality. The Peak Signal-to-Noise Ratio (PSNR) between a standard single-compressed JPEG and its fixed-point counterpart typically ranges from 45 dB to 65 dB, making the changes virtually imperceptible to the human eye. The method proved highly effective at localizing various attacks, including salt-and-pepper noise, splicing, and copy-move forgeries, with tampered blocks clearly "lighting up" during the verification step.

Limitations and Future Directions

While the current mathematical framework rigorously covers 8x8 grayscale blocks, the authors have empirically demonstrated success with full RGB images. Future work aims to expand the formal proofs to include the complexities of the full color pipeline, such as YUV color space transformations and chroma subsampling. This research opens new avenues for using standard compression algorithms as intrinsic cryptographic tools for image forensics.

Summary updated

Abstract

An intriguing phenomenon about JPEG compression has been observed since two decades ago- after repeating JPEG compression and decompression, it leads to a stable image that does not change anymore, which is a fixed point. In this work, we prove the existence of fixed points in the essential JPEG procedures. We analyze JPEG compression and decompression processes, revealing the existence of fixed points that can be reached within a few iterations. These fixed points are diverse and preserve the image's visual quality, ensuring minimal distortion. This result is used to develop a method to create a tamper-evident image from the original authentic image, which can expose tampering operations by showing deviations from the fixed point image.
BibTeX
@misc{si2025tamper,
  author = {Zhaofeng Si and Siwei Lyu},
  title = {{Tamper-evident Image using JPEG Fixed Points}},
  year = {2025},
  eprint = {2504.17594},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.17594},
}
Figure