FamilyAlbum


Project maintained by Jgc7 Hosted on GitHub Pages — Theme by mattgraham

Family Album

Simple static photo gallery that groups images by year and person. Demo

Files included

What it does

createjson.js scans a root folder that contains subfolders named by year (for example 2020, 2021) and builds a photos.json file. index.html loads that JSON to render a browsable gallery.

Generate photos.json

Requirements: Node.js (v14+ recommended).

Examples:

# Default: embed images as base64 in the JSON
node createjson.js --root "C:\path\to\photos-root" --out photos.json

# Embed image data
node createjson.js --root "C:\path\to\photos-root" --out photos.json --embed

# Produce a compact JSON (no pretty formatting)
node createjson.js --root "C:\path\to\photos-root" --out photos.json --compact

Main options

The script also tries to extract person names from filenames (e.g. maria_dad.jpg['Maria','Dad']). If no names are found it uses Unknown.

Notes