Key Photo & Burst CoverCompare pitm ID against iinf enumeration index across all stills

HEIC Primary Image (pitm) Inspector

Audit the ISO/IEC 23008-12 PrimaryItemBox (`pitm`) against raw `iinf` enumeration order to verify which burst frame viewers designate as the cover photo.

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: portrait-burst-o6.heic (10.1 KB)

Verified Sample Result & Instant Demo

Try Sample File in 1 Click

Does the first item in portrait-burst-o6.heic match its designated primary photo? No: iinf enumerates IDs 1, 2, 3 in order, while pitm at byte offset 91 designates Item ID 2 (enumeration index 1) as primary.

Designated pitm ID
2id
Primary Enumeration Index
1index
First Enumerated Item ID
1id
pitm Box Offset
91byte
Cryptographic SHA-256 & Engine Provenance
Sample Input File
portrait-burst-o6.heic · 10339 bytes · CC0-1.0
Browser Codec Engine
libheif-js 1.23.5
Input SHA-256 Digest
682c6b4d505a79bc2f967d7cbddae9bf5b0586022a0ca4f1ba9b0d5639a2f75a
Engine Artifact SHA-256
095194187be00d3e36335b8ad7f5552d70655e5e2159486d7d36cd4daa47bba9
Reference Verification
ISO/IEC 14496-12 Section 8.11.4 pitm-v0
Schema & Preset ID
heic.heictopngtool.heic-primary-image.v1 · inspect-pitm-designation · proj-a-pitm-vs-order

Understanding PrimaryItemBox (`pitm`) Semantics in Multi-Image HEIF Files

Why Enumeration Index Zero Is Not Guaranteed to Be Primary

In ISO/IEC 14496-12 and HEIF (ISO/IEC 23008-12), the ItemInfoBox (iinf) lists items by arbitrary integer IDs assigned at muxing time, whereas the mandatory PrimaryItemBox (pitm) declares the single item ID that renderers must treat as the default representation when opening the file in a gallery or browser.

When an iPhone user picks a favorite burst keyframe in Apple Photos, the container can update pitm or attach item-specific cdsc Exif descriptors to that chosen ID without rewriting or reordering preceding mdat slices. In portrait-burst-o6.heic, Item ID 1 sits at index 0, but pitm explicitly selects Item ID 2 at index 1 and binds Exif Item 4 to ID 2 via cdsc.

  • Parses both 16-bit (version 0) and 32-bit (version 1) pitm item_ID fields.
  • Cross-checks libheif is_primary() handle flags against raw pitm header bytes.
  • Highlights metadata cdsc bindings so you see which item owns the EXIF block.

Debugging Ingestion Bugs in Custom DAM and Thumbnail Pipelines

If your digital asset management script extracts index 0 via ffmpeg stream mapping instead of querying the HEIF primary item, users see rejected blink frames or unrotated raw slices. Use this inspector to confirm exact pitm IDs before configuring automated server or mobile ingestion.

Common Questions & Answers

Can a valid HEIC image container omit the pitm box?

Under ISO/IEC 23008-12 for brand heic, a single PrimaryItemBox inside the top-level meta box is required so decoders always know which item represents the primary still.

How does pitm affect EXIF metadata attachment?

Metadata items of type Exif or mime link to specific image IDs through cdsc references inside iref, most commonly targeting the pitm primary item ID.

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.