Tiny script to restore the dates in photos shared using Whatsapp. Built using Typescript and the Javascript Runtime Bun
- Day.js - Fast 2kB alternative to Moment.js with the same modern API
- exiftool-vendored - Fast, cross-platform Node.js access to ExifTool.
To install dependencies:
bun install
Set path to scan for images:
# .env
SCAN_ROOT=path/to/scan
Run using:
bun start
Whatsapp images only contain the day, month and year. NOT the time. That's why the DateTimeOriginal is set on 12:00 (12 PM);