
Enlarge illustration
Can an image’s stated date change without changing what we see? Yes. This experiment lets you check using two downloadable files, a procedure and comparison results.
This is educational material prepared for this website. It uses an original geometric pattern generated for the experiment, with no people. Both dates are fictional and were deliberately inserted. The files are test copies of an illustration, not camera originals or case evidence. The illustration did not come from a camera and those dates do not represent a real capture.
1. Question and reference material
The question is limited: can changing an EXIF tag produce different files with the same decoded pixels? The pattern has no source camera or capture date to investigate.
Download the complete experiment ZIP: two JPEGs, instructions, results and two checking scripts. No registration or file submission is required. The existing download retains its Spanish filenames, instructions and script messages; the steps below explain the procedure in English.
You can also view file A, file B and the complete JSON results.
2. Controlled operation
Two copies of the same test JPEG are created. ExifTool removes their metadata and inserts only a test DateTimeOriginal: 2020:01:02 10:00:00 for A and 2024:07:08 10:00:00 for B. Visual content is neither edited nor recompressed.
Verification was performed with ExifTool 13.55 and Pillow 12.3.0. SHA-256 was calculated for each complete file. Each JPEG was then decoded, converted to RGB and compared for dimensions and every pixel byte. The ZIP preserves versions, dimensions and complete hashes for verification.
3. Observed result
| Check | File A | File B |
|---|---|---|
| DateTimeOriginal, test value | 2020:01:02 10:00:00 | 2024:07:08 10:00:00 |
| Dimensions | 900 × 900 pixels | 900 × 900 pixels |
| File size | 74075 bytes | 74075 bytes |
| File SHA-256, abbreviated prefix | 1f2c32bf7bebcf57… | be6ee619259a3aba… |
| Complete RGB pixel comparison | Identical to B | Identical to A |
The files differ despite having the same size and decoded pixels. Binary comparison detects a difference; EXIF reading and the controlled procedure explain its nature here. Abbreviated prefixes are for orientation; verification uses the complete hashes in the JSON.
4. Repeat the checks
Extract the ZIP into a new folder. With ExifTool installed, this command reads the tag without writing:
exiftool -a -G1 -s -DateTimeOriginal referencia-a.jpg referencia-b.jpg
To compare hashes on Linux:
sha256sum referencia-a.jpg referencia-b.jpg
On macOS, use shasum -a 256 followed by both filenames. In Windows PowerShell, use Get-FileHash referencia-a.jpg, referencia-b.jpg -Algorithm SHA256.
The included verificar.py checks complete hashes, dimensions and equality of every RGB byte. It requires Python 3 and Pillow; run python verificar.py or python3 verificar.py, depending on your installation. You can read the code before running it.
To reproduce the modification, reproducir.py creates a new copy of A, changes only its EXIF date using ExifTool and compares the visual result. It refuses to overwrite an existing copy. The experimental outcome is pixel equality alongside a file difference; different tool versions need not write exactly the same auxiliary bytes.
5. What this demonstrates and what it does not
- In this controlled material, a stated date can change without changing decoded pixels.
- A different hash does not, by itself, prove compositing: metadata or other file differences can also change it.
- An identical hash checks binary identity against a preserved reference; it does not establish that the depicted scene is true.
- Pixel equality in this experiment does not certify unknown files’ authenticity. This RGB comparison does not exhaust properties such as colour profiles, orientation or rendering in other viewers.
- A real date requires comparison with references and context. It cannot be inferred from these fictional dates.
Basis and forensic application
Chapter 6 of Hany Farid, Photo Forensics (MIT Press, 2016) examines metadata and file structure. This experiment illustrates a limitation of stated information; it does not reproduce or validate every technique in the book. The ExifTool documentation distinguishes reading and writing tags. The methodological framework explains how results are combined with other observations.
In a real investigation, received files must be preserved, the process documented and conclusions delimited. For a disputed date or possible alteration, describe your enquiry. Evidence transfer is agreed through an appropriate channel.