Skip to content

Auto-fill polaroid captions from photo EXIF#21

Merged
ankitsejwal merged 4 commits into
mainfrom
feat/exif-captions
Jun 28, 2026
Merged

Auto-fill polaroid captions from photo EXIF#21
ankitsejwal merged 4 commits into
mainfrom
feat/exif-captions

Conversation

@ankitsejwal

Copy link
Copy Markdown
Member

Implements #4 — the headline feature. On upload, each photo's captions auto-fill from its EXIF: city (top) from GPS via the offline reverse-geocoder (#5), date (bottom, e.g. "October 2008") from capture time. Runs async after the photo appears; never overwrites a caption you've typed.

  • lib/exif.ts — reads GPS + capture date via exifr (client-side)
  • lib/date.ts — formats the date as "Month Year"
  • store enrich() — EXIF → reverse-geocode → fill empty captions

Verification (real GPS photos, app's actual deps)

DSCN0010.jpg => captionTop: "Cortona" | captionBottom: "October 2008"
DSCN0021.jpg => captionTop: "Cortona" | captionBottom: "October 2008"
DSCN0027.jpg => captionTop: "Cortona" | captionBottom: "October 2008"

pnpm lint/typecheck/build all green.

Closes #4

@ankitsejwal ankitsejwal merged commit d2c31fd into main Jun 28, 2026
1 check passed
@ankitsejwal ankitsejwal deleted the feat/exif-captions branch June 28, 2026 12:46
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.

EXIF auto-caption — date + city via exifr (headline feature)

1 participant