Skip to content

feat(exif): catalog-driven writable table + writeGroup routing for EXIF/GPS serializers - #51

Open
woss wants to merge 1 commit into
mainfrom
feat/serializer-exif-writable-table
Open

woss wants to merge 1 commit into
mainfrom
feat/serializer-exif-writable-table

Conversation

@woss

@woss woss commented Nov 21, 2026

Copy link
Copy Markdown
Owner

serializer-exif lane (§B). Closes the JPEG|EXIF|set matrix reason: "Hand-mapped tags; full writable table and group routing open".

What

  • generate-tags.ts emits src/exif/generated/writable-exif.json: 451 writable standard-group tags (IFD0/ExifIFD/GPS/InteropIFD/SubIFD/IFD1) joined with -listx PrintConv value tables. Write group resolved per-tag WriteGroup → table WRITE_GROUP → Groups{1}; protected/conditional flags carried.
  • tiff-builder.ts merges the catalog into the group tables at init (hand-mapped specs win collisions — they carry exact counts/special encoders). Condition-based tags (MakerNote*) refused loud via skipped.
  • buildTiff, buildBigTiffIfd0 and the JPEG merge generic-EXIF path all resolve through the merged tables — no loop restructure.

Matrix

  • JPEG|GPS|set → implemented (full GPS table, qualified routing, negative-coordinate ref synthesis; round-trip tests).
  • JPEG|EXIF|set, TIFF|EXIF|set, TIFF|GPS|set reasons refreshed to current state (still partial: add/replace modes, per-tag differential sweep).

Tests

  • New: catalog-only tags round-trip through vendored ExifTool 13.64 (ProcessingSoftware/AmbientTemperature/Humidity + PrintConv enum), InteropIFD pointer creation for qualified tags, conditional-tag refusal, JPEG-merge qualified GPS + catalog-only EXIF, generator collector unit tests (writeGroup fallback chain).
  • Full suite: 1000 passed / 0 failed; tsc clean; generate-matrix --check passes.

🤖 Created by omp (session 01a20072-6105-7779-813d-61b178bbcf0e)

…IF/GPS serializers

- generate-tags.ts emits src/exif/generated/writable-exif.json: 451 writable
  standard-group tags (IFD0/ExifIFD/GPS/InteropIFD/SubIFD/IFD1) joined with
  -listx PrintConv values; write group resolved per-tag WriteGroup ->
  table WRITE_GROUP -> Groups{1}; protected/conditional flags carried
- tiff-builder merges catalog into the group tables (hand-mapped wins
  collisions); condition-based tags refused loud
- JPEG|GPS|set promoted to implemented (negative-coordinate ref synthesis +
  qualified routing round-trip tests); EXIF/TIFF reasons refreshed

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant