Photo: one async method per EXIF field (closes #148) #149

Merged
clawbot merged 2 commits from issue-148-exif-field-methods into next 2026-10-02 00:09:24 +02:00
2 Commits
Author SHA1 Message Date
sneak 1ede66e5c0 Photo implements one method per PhotoExif field
check / check (push) Successful in 1m22s
Photo now implements a mapped type with one method per PhotoExif field,
each taking exif()'s options and giving that field's type, so the
build's type check fails when PhotoExif has a field Photo has no method
for, whatever the test fixtures hold. The test comment and TODO.md say
so.

Model: opus-5-5
2026-10-01 21:23:35 +00:00
sneak f2f3395f94 Photo: one async method per EXIF field (closes #148)
Thirteen methods on Photo, make() through gpsAltitude(), each named after
its PhotoExif field and typed by it. Each calls exif() with the same opts
and returns that one field, or undefined when the file lacks it. A test
checks, on the JPEG fixture and on test/exif.heic, that every field
exif() returns has a method giving the same value. README and TODO.md
list them.

Model: opus-5-5
2026-10-01 21:23:23 +00:00