Skip to content

feat(iptc): URL_List + explicit IPTCDigest complete the writable Photoshop IRB surface - #52

Open
woss wants to merge 3 commits into
feat/serializer-exif-writable-tablefrom
feat/serializer-iptc-photoshop-irb
Open

woss wants to merge 3 commits into
feat/serializer-exif-writable-tablefrom
feat/serializer-iptc-photoshop-irb

Conversation

@woss

@woss woss commented Nov 21, 2026

Copy link
Copy Markdown
Owner

serializer-iptc lane C1 (§C Photoshop IRB half), stacked on #51.

What

  • Photoshop:URL_List (0x041e): encoder (count + 8 reserved bytes + char count + UTF-16BE) in src/write/iptc.ts, decoder in src/exif/app13.ts. Accepts string or string[], null deletes, non-string lists refused.
  • Photoshop:IPTCDigest (0x0425): new (MD5 of the merged IIM in the same update), old (MD5 of the original block), literal 32-hex, null delete. Explicit requests bypass auto-reconcile; the existing recalc-only-if-in-sync / stale-preserve invariant is untouched and tested.
  • Upstream -listw writable Photoshop set (CopyrightFlag, GlobalAngle/Altitude, URL, URL_List, IPTCDigest, PhotoshopQuality, thumbnails) is now fully writable; non-writable nested resources (VersionInfo, EXIFInfo, XMP, PrintScaleInfo, PixelInfo) stay preserved byte-for-byte.

Matrix

  • JPEG|Photoshop IRB|set → implemented (second implemented cell).

Verification

  • URL_List byte-parity through our parser AND vendored ExifTool 13.64 readback; IPTCDigest('new') == CurrentIPTCDigest upstream (MWG sync marker).
  • Suite 1002/1002, tsc clean, generate-matrix --check passes.

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

woss added 2 commits November 22, 2026 00:58
…oshop IRB surface

- URL_List (0x041e): count + 8 reserved + char-count + UTF-16BE entries;
  encoder in iptc.ts, decoder in app13.ts parse
- IPTCDigest (0x0425): 'new' (md5 of merged IIM), 'old' (md5 of original
  block), 32-hex literal, null delete; explicit requests bypass
  auto-reconcile (and vice versa)
- upstream -listw writable Photoshop set now fully covered →
  JPEG|Photoshop IRB|set promoted to implemented
- round-trips: URL_List byte-parity + IPTCDigest==CurrentIPTCDigest via
  vendored exiftool 13.64; suite 1002/1002
…e promoted

- new sweep test: every catalog-writable Envelope/Application/NewsPhoto
  dataset resolves, encodes, and reads back through vendored ExifTool
  13.64 (type-aware values: digits widths, CodedCharacterSet, binary
  bounds)
- export IPTC_DIGIT_LENGTHS/IPTC_BINARY_LENGTHS for the sweep
- by-line replace/delete + empty-keywords removal already covered;
  JPEG|IPTC|set and JPEG|IPTC|delete → implemented
@woss
woss added this pull request to stack #53 November 22, 2026 00:02
@woss

woss commented Nov 22, 2026

Copy link
Copy Markdown
Owner Author

Pushed second commit vzy (51b9732): serializer-iptc C2 folded into this stacked PR —

  • IIM 105-dataset sweep test: every catalog-writable Envelope/Application/NewsPhoto dataset resolves through the IIM encoder and reads back via vendored ExifTool 13.64 (type-aware values: digits widths, CodedCharacterSet, binary bounds).
  • JPEG|IPTC|set → implemented, JPEG|IPTC|delete → implemented (null deletes targeted datasets; empty Keywords removes the record; siblings + XMP Subject preserved).
  • By-line multi-value replace/delete + empty-keywords removal were already tested; spec test-vector list now fully covered for JPEG APP13.

Suite 1003/1003, tsc clean, generate-matrix --check passes.

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

@woss

woss commented Nov 22, 2026

Copy link
Copy Markdown
Owner Author

CI failure fixed: the digest rework left replace-existing/no-op resource branches uncovered (src/write/iptc.ts 99% line). Commit zmm adds the focused test — audit is back to PASS — all 55 modules meet 100% line / 100% function. Suite 1006/1006, tsc clean.

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

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