# PP-294 earlier check record, October 3, 2026: JPEG/PNG metadata cleanup, replay and limits

**Historical record.** Practical Picks ran this small hands-on check on October 3, 2026, before adopting its research-only method later that day. We no longer run product checks, and nothing here has been rerun since. The current comparison rests on public documentation, source code and records, checked October 19, 2026; this record is kept as dated, bounded evidence only. Product versions and behaviour may have changed since.

Checked October 3, 2026 on Ubuntu 24.04 x86-64. This was a local check on generated images. It does not establish anonymity, full forensic erasure, safety of every camera format, or anything about PDF cleanup. No real images, account or network upload were used.

## Files and exact builds

The frozen inputs are [oriented.jpg](fixtures/oriented.jpg), [profile.png](fixtures/profile.png), [ordinary.jpg](fixtures/ordinary.jpg), and [malformed.jpg](fixtures/malformed.jpg). `oriented.jpg` is an 80×48 JPEG with EXIF Orientation 6, an embedded sRGB ICC profile, invented GPS coordinates, Artist `Test Author`, and Comment `Private test note`. `profile.png` is an 80×48 PNG with the same ICC profile, Author and Comment. `ordinary.jpg` is a 96×64 tagged JPEG without Orientation/ICC. `malformed.jpg` contains only `not a JPEG`. The colors and tags are generated. [generate-fixtures.py](generate-fixtures.py) documents their creation with Pillow and ExifTool; use the frozen files for exact byte comparisons because a newly generated ICC profile may differ at the byte level.

- [ExifTool 13.59](https://exiftool.org/) source archive `Image-ExifTool-13.59.tar.gz` (official [SourceForge download](https://sourceforge.net/projects/exiftool/files/Image-ExifTool-13.59.tar.gz/download)), SHA256 `668ea3acececb7235fbd0f4900e72d5f12c9b07e5c778fd36cb1e9b5828fd65a`.
- [mat2 0.15.0](https://pypi.org/project/mat2/0.15.0/) Python wheel `mat2-0.15.0-py3-none-any.whl` (exact [PyPI file](https://files.pythonhosted.org/packages/cc/82/b097282d93c8073936752185ad106037caf1d48484c7e247c0ef7882ffd5/mat2-0.15.0-py3-none-any.whl)), SHA256 `829b563aafcf2f8bb184e8f45a67ca1362b86339caf1587dc2c1e985dcc12fb3`.
- Pillow 10.2.0 and mat2's GI/Poppler imports came from Ubuntu 24.04 packages extracted under the task directory. The [setup script](setup-ubuntu2404.sh) lists and fetches the exact package versions, checks the two product archive hashes, and extracts everything without a system install. Its output directory was about 50 MB on our host. Python 3.12, Perl, `curl`, `apt`, `dpkg-deb`, `tar`, and common Ubuntu base shared libraries are prerequisites. A future Ubuntu mirror may retire a pinned package; then fetch the recorded version from the Ubuntu archive or document the replacement before comparing results.

## Replay

From the repository root on the stated host type:

```sh
bash public/assets/pp294/setup-ubuntu2404.sh /tmp/pp294-replay-tools
source /tmp/pp294-replay-tools/env.sh
python3 public/assets/pp294/challenge.py --output /tmp/pp294-results.json
```

The [replay script](challenge.py) uses only the two named environment variables for tool paths, creates fresh disposable work directories, runs the exact commands, and prints commands, stdout, stderr, exit codes, tag inventories, decoded pixel equality, orientation-adjusted equality, ICC hash equality, invented-string scan, and unchanged input hashes. We completed a fresh replay using only the documented setup and files. The captured [results JSON](challenge-results.json) is that run; temporary path names and file timestamps vary. A separate [generator](generate-fixtures.py) can make semantically equivalent inputs in a task folder when `PP294_EXIFTOOL` is set.

The decisive ExifTool command for a separate sharing copy is:

```sh
exiftool -all= --icc_profile:all -tagsfromfile @ -colorspacetags -Orientation -o OUTPUT.jpg INPUT.jpg
```

The result is checked with `exiftool -u -a -G1 -s OUTPUT.jpg`, a pixel/render check, and an inspection of the retained ICC/Orientation tags before sharing. The `-o` argument creates another file and leaves the source intact. The official [ExifTool FAQ](https://exiftool.org/faq.html) gives the color-preserving base recipe; we added `-Orientation` for the oriented fixture. Plain `-all=` removed both the ICC profile and Orientation here, even though decoded pixels did not change. Preserving ICC/Orientation intentionally retains those particular metadata fields; they should be reviewed for the actual file.

## Observed outcomes

| Path | Planted GPS/author/comment | Decoded pixels | Orientation-adjusted view | ICC bytes | Malformed mixed batch |
| --- | --- | --- | --- | --- | --- |
| ExifTool exact preservation command | Absent in tested JPEG/PNG output inventories and invented-string scan | Equal to source | Equal to source | Equal to source | Exit 1; two valid outputs created; malformed output absent |
| ExifTool plain `-all=` | Absent | Equal | Oriented JPEG no longer rotated | Removed | Tested separately on valid files |
| mat2 0.15.0 `-L` | Absent | Equal | Oriented JPEG no longer rotated | Removed | Exit 255; valid outputs created; malformed output absent |
| mat2 0.15.0 default ordinary JPEG | Absent | Changed by recompression | Ordinary image had no orientation | None in source | Tested separately |

The corresponding small output files are [ExifTool preserved-orientation JPEG](outputs/exiftool-safe/oriented.jpg), [ExifTool preserved-profile PNG](outputs/exiftool-safe/profile.png), [ExifTool ordinary JPEG](outputs/exiftool-safe/ordinary.jpg), [plain ExifTool oriented JPEG](outputs/exiftool-plain/oriented.jpg), [plain ExifTool profile PNG](outputs/exiftool-plain/profile.png), [mat2 lightweight oriented JPEG](outputs/mat2-light/oriented.cleaned.jpg), [mat2 lightweight profile PNG](outputs/mat2-light/profile.cleaned.png), and [mat2 default ordinary JPEG](outputs/mat2-default/ordinary.cleaned.jpg). The source JPEG and PNG were still present and byte-identical after every command in the replay. A batch-wide nonzero exit did **not** mean all valid outputs were missing; inspect each output and each error. Neither a clean tag inventory nor a raw scan of the two planted text strings proves that every possible hidden or visible identifier was removed. Names in filenames, visible text, sidecars and content in the pixels require their own review.
