Layout
Bytes are packed once; total length must match header lengths exactly. Unknown major/minor, codec or flags are rejected.
| Offset | Size | Field |
|---|---|---|
| 0 | 8 | magic 4c 49 4d 47 0d 0a 1a 0a |
| 8 | 1 | major = 0 |
| 9 | 1 | minor = 1 |
| 10 | 1 | codec = 1 (PNG) |
| 11 | 1 | flags = 0 |
| 12 | 4 | UTF-8 JSON byte length |
| 16 | 4 | PNG payload byte length |
| 20 | variable | JSON metadata |
| 20+N | variable | PNG 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
- Image ≤ 16 MiB · edge ≤ 8192 px · ≤ 16,000,000 pixels
- Download MIME provisional: application/octet-stream
- Version 0.1 is unsigned — integrity ≠ destination safety
Reference implementation: web/limg.mjs · tests/limg.test.mjs · docs/SPEC-DRAFT.md