Allowlist vs Denylist Metadata Sanitization for Photo Archiving
Why Denylist Strippers Leave Unexpected Identifiers Behind
Traditional metadata cleaners operate as denylists: they delete known GPS tags while leaving LensSerialNumber, BodySerialNumber, HostComputer, Software, Artist, ImageUniqueID, or custom XMP namespaces untouched. Conversely, stripping 100% of EXIF causes family photo albums, Lightroom catalogs, and NAS timelines to lose chronological capture timestamps and sort everything under today’s file-creation date.
Our Metadata Policy Studio solves that trade-off with a strict constructive allowlist. First, the image is decoded to raw RGBA pixels and oriented upright. Second, MozJPEG encodes a completely tag-free JPEG scan. Third, piexifjs synthesizes a fresh TIFF/EXIF APP1 segment populated strictly from approved scalar fields—never copying raw input IFD bytes.
- Strip All (Default): Zero APP1/XMP segments for maximum anonymity.
- Allowlist Capture Date: Writes DateTimeOriginal (0x9003), Orientation=1 (0x0112), and pixel dimensions only.
- Timezone-immune parsing reads raw ASCII EXIF date strings without browser local-time shifting.
Auditing Retained vs Omitted Tag IDs Before Download
Every policy run lists exact hexadecimal TIFF tag IDs retained alongside every detected source tag omitted, giving compliance teams auditable proof of sanitization.