imgnect

LIMG · EXPERIMENTAL

Specification draft 0.1

Private binary container. Big-endian fields. First codec profile is original PNG without recompression.

Layout

Bytes are packed once; total length must match header lengths exactly. Unknown major/minor, codec or flags are rejected.

OffsetSizeField
08magic 4c 49 4d 47 0d 0a 1a 0a
81major = 0
91minor = 1
101codec = 1 (PNG)
111flags = 0
124UTF-8 JSON byte length
164PNG payload byte length
20variableJSON metadata
20+NvariablePNG bytes

Metadata

JSON object with a links array. Each link has normalized x,y,w,h in 0…1, an HTTPS url without credentials, and a label up to 120 characters. Maximum 64 links and 64 KiB metadata.

Limits

Reference implementation: web/limg.mjs · tests/limg.test.mjs · docs/SPEC-DRAFT.md