Diagnosing Mirrored Selfie Captures Across `imir` Boxes and EXIF Reflections
Why Jersey Numbers and Street Signs Flip in Front-Camera HEICs
Front-facing smartphone cameras show a mirror-like preview during framing, then either bake the flip into sensor readout or attach reflection metadata so viewers reverse the image upon display. In HEIF containers, reflection is expressed either via the single-byte ImageMirror (imir) item property or via mirrored TIFF Orientation codes: 2 (horizontal mirror), 4 (vertical mirror), 5 (transpose), and 7 (transverse).
Subtle spec revisions in ISO/IEC 23008-12 make reflection bugs notorious: imir axis bit 0 indicates a horizontal mirror axis (top-to-bottom flip) whereas axis bit 1 indicates a vertical mirror axis (left-to-right flip). Meanwhile, decoders that ignore EXIF Orientation 2 leave text backward when no imir box is present.
- Reports exact reflection axis (none, horizontal-left-right, or vertical-top-bottom) and 2×2 matrix.
- Displays before-and-after sRGB quadrant means to confirm asymmetric left/right corner exchange.
- Allows toggling Normalize Orientation off if you intentionally want raw unreflected sensor pixels.
Forensic & Document Capture Verification
When photographing IDs, whiteboards, serial plates, or medical charts on iOS devices, accidental reflection invalidates OCR and human review. Auditing quadrant landmarks confirms whether text orientation came from pixel order or metadata flags.