work/ingress

Photo and video intake

INGRESS

Files camera-card archives and a loose-photo inbox into the library by camera, year and month, never touching the cards and holding anything with a suspicious date for a human.

Live

Preview of two test cards and an inbox: card files are copied and kept, inbox files are moved, EXIF-less screenshots go to Unsorted.

INGRESS is the third step of the card pipeline. The SD-card cloner makes the archive, the archive browser lets you look inside it, and INGRESS files what is on it into the photo and video library, in the folder layout the library already had: camera make and model, then year, then month, with the original filename kept.

It reads from two kinds of source and treats them differently on purpose. Card archives are copied from and left alone, because the archive is the backup. The photo inbox is moved from and empties as it files, and duplicates in it are simply deleted.

Runs on
Web app on the home server, local network only
Built with
Node, zero npm dependencies, exiftool, Docker
Started
August 2026

A run

Preview, ingest, done

  1. Preview of two test cards and an inbox: card files are copied and kept, inbox files are moved, EXIF-less screenshots go to Unsorted.
    Preview of two test cards and an inbox: card files are copied and kept, inbox files are moved, EXIF-less screenshots go to Unsorted.
  2. Ingest started: 24 files filed, one duplicate caught.
    Ingest started: 24 files filed, one duplicate caught.
  3. After a run: the library by camera and year, an Unsorted video, and the activity log. All cameras and files here are made up.
    After a run: the library by camera and year, an Unsorted video, and the activity log. All cameras and files here are made up.

Look before it leaps

Preview shows exactly what would happen for every source: each file, an arrow, where it would land, plus counts and bytes. Nothing is written. Dry run walks the whole job without copying, and Ingest now does it for real. "Where things land" sums up the library by camera and year range, and the activity log streams each batch as it goes.

Dates you can't trust

A camera whose clock was never set stamps every file 1 January at midnight and counts up from there. Filed by date, a whole shoot would land in the wrong year. INGRESS judges each batch as a whole: if the earliest frame is midnight on 1 January, there are only a few distinct days and that covers nearly every file, the batch is parked in a review queue until someone decides. Files with no camera make or model go to Unsorted, dated from the file itself.

How it's built

  • No npm dependencies; exiftool is the only outside tool.
  • The planner is a pure function, metadata in and destination out, with 77 test assertions written against the real library layout, the clock cases included.
  • Every copy is read back and checked before it counts. An append-only ledger, indexed by source and by content hash, makes re-runs fast and catches the same picture arriving twice.
  • One bug is written down so it doesn't come back: exiftool's fastest read mode silently drops the EXIF block of HEIF files, which split RAW and HEIF pairs from the same shot across two folders. That mode is gone.

1 / 3

Preview of two test cards and an inbox: card files are copied and kept, inbox files are moved, EXIF-less screenshots go to Unsorted.
Preview of two test cards and an inbox: card files are copied and kept, inbox files are moved, EXIF-less screenshots go to Unsorted.