Selfie Mirror & Flip CheckDetect reflection axis (imir / EXIF 2,4,5,7) & verify corner swap

HEIC Mirror & Reflection Inspector

Detect horizontal and vertical reflections from front-camera selfies (`imir` or EXIF `Orientation = 2, 4, 5, 7`) and verify asymmetric corner remapping.

Drop iPhone HEIC photos here — upright & private

30 MB / 48 MP per photo · stays on your device · Burst series & Live Photo stills supported.

Save As:
Burst Selection, JPG Quality & Batch Naming
Verified Sample · CC0-1.0Sample file: mirror-private-o2.heic (5.4 KB)

Verified Sample Result & Instant Demo

Try Sample File in 1 Click

How does mirror-private-o2.heic map corners under EXIF Orientation=2? Horizontal reflection [-1,0,0,1] swaps raw top-left RGB (143,67,131) and top-right RGB (87,113,136) into final top-left (87,113,136) and top-right (143,67,131).

Detected Reflection Axis
horizontal-left-rightaxis
Input EXIF Orientation
2code
Final Top-Left Mean
87,113,136sRGB
Final Top-Right Mean
143,67,131sRGB
Cryptographic SHA-256 & Engine Provenance
Sample Input File
mirror-private-o2.heic · 5484 bytes · CC0-1.0
Browser Codec Engine
libheif-js 1.23.5
Input SHA-256 Digest
7b93ca19d5d59c6a8cef230af1ec0c1f34653491f65f39879282e6409d7d9607
Engine Artifact SHA-256
095194187be00d3e36335b8ad7f5552d70655e5e2159486d7d36cd4daa47bba9
Reference Verification
TIFF Orientation=2 + imir 2022
Schema & Preset ID
heic.heictopngtool.heic-mirror-check.v1 · detect-horizontal-mirror · proj-b-exif2-mirror

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.

Common Questions & Answers

Which EXIF Orientation numbers include a mirror reflection?

Codes 2, 4, 5, and 7 include a spatial reflection (determinant -1), whereas codes 1, 3, 6, and 8 are pure proper rotations (determinant +1).

Can I export the unmirrored raw bitstream if I want the opposite handedness?

Yes. Uncheck Normalize Orientation in the workbench controls to bypass EXIF reflection and export raw decoded sensor coordinates.

100% Private In-Browser Processing

Verified local execution

  • Zero Cloud Uploads

    Your files stay on this device and are never sent to any remote server.

  • Instant Local Speed

    Runs directly on your device up to 30 MB with no upload queue.

  • No Account Needed

    Open a file, inspect your preview, and download immediately without signing up.

View Security Architecture
Execution Sandbox
Dedicated Web Worker
Post-Init Network
Locked (0 Egress)
Max File Budget
30 MB
Cross-Origin Isolation
Single-Thread WASM

After local WebAssembly initialization, Worker network APIs (fetch, XMLHttpRequest, WebSocket) are locked to prevent outbound data egress.