Skip to main content

Trailframe

GitHub Release GitHub Activity License

A self-hosted photo gallery for people who move: photos and GPS activities (Garmin Connect / GPX) live side by side, linked by time and place. One server hosts everything — a FastAPI backend that also serves its web UI.

Gallery view

Photo library

  • Automatic ingestion of a photo folder, with EXIF capture (camera, date, GPS) on import.
  • Multi-size thumbnails generated and cached per photo; sizes are configurable.
  • Favorites — mark photos you love and find them instantly; favorite-only views everywhere.
  • Automatic groups — related photos are clustered so bursts and series stay together.
  • Filter and combine by date range, group, location, tags, and favorites.

Activities

  • Import activities from Garmin Connect or GPX files.
  • Every activity gets a trace map; photos taken during the activity appear alongside it.
  • Interactive map with selectable traces and popups showing distance, duration, and time.

Garmin activities

Slideshows

  • Slideshow sources: an activity (photos + trace), a group, or a fully custom selection.
  • Custom slideshows support date ranges, groups, locations, tags, randomization, and favorites-only.
  • Thumbnail mode renders slides from cached thumbnails instead of full images — smooth playback even for large libraries, with the size chosen automatically from the available screen space.
  • Standalone kiosk entry (/slideshow.html) with deep-linkable URLs for dedicated screens.
  • ZIP export of an activity's photos.

Slideshow with activity trace Slideshow photo view

Enrichment pipelines

Photos are processed by pluggable scanners:

Scanner What it does
File Registers the file (name, size)
EXIF Extracts camera metadata, dates, and GPS position
Thumbnail Generates all configured thumbnail sizes
Activity Links photos to imported activities
Brisque Scores image quality
Location Resolves GPS coordinates to places and countries
Object Detects objects in photos (YOLO models, downloaded automatically)
PerceptualHash Fingerprints images for duplicate/near-duplicate grouping

Scanners can be force re-run individually from the Tools page — e.g. regenerate all thumbnails after changing their sizes.

Maps

  • Wireframe maps of your photo coverage and per-photo location maps.
  • Built-in tile cache/proxy: tiles are fetched once from the configured provider and served locally afterwards.

Tools map with activity traces

Statistics

  • Per-scanner throughput (items processed and speed).
  • Storage overview: database size plus disk usage of every data folder.

Install

A wheel is attached to every release: download the latest trailframe-…-py3-none-any.whl and install it with pip (Python 3.12 or newer):

pip install trailframe-…-py3-none-any.whl

All Python dependencies are pulled in automatically; the web UI is bundled inside the wheel.

Running

Run the trailframe command from the folder where all data (database, thumbnails, caches, trash) should live:

trailframe --config path/to/config.yaml

(python -m trailframe.main is equivalent.) The server listens on port 8000 by default; open http://localhost:8000. On first start a default config.yaml is written to the current directory.

From source

Build the web UI once (npm install && npm run build inside frontend/), then start the server from the repository root:

python supervisor.py --config path/to/config.yaml

The supervisor restarts the server whenever it exits and forwards SIGTERM/SIGBREAK to it. To build a wheel yourself, build the web UI first, then run pip wheel ..

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trailframe-0.1.2.tar.gz (2.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trailframe-0.1.2-py3-none-any.whl (623.9 kB view details)

Uploaded Python 3

File details

Details for the file trailframe-0.1.2.tar.gz.

File metadata

  • Download URL: trailframe-0.1.2.tar.gz
  • Upload date:
  • Size: 2.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for trailframe-0.1.2.tar.gz
Algorithm Hash digest
SHA256 ec2d331ac283533bd789ebeb6fd310d994223e7bbd77bdd516c8f88d3e8cbb0b
MD5 937d29622f82545d2965e37472188c0b
BLAKE2b-256 339a1b1f0f5c4f769bf93b1d234481ad4067f95ca4d428e653f96e9f3b11d3cb

See more details on using hashes here.

Provenance

The following attestation bundles were made for trailframe-0.1.2.tar.gz:

Publisher: publish.yml on Sildra/trailframe

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file trailframe-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: trailframe-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 623.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for trailframe-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cb3c8abef2b524b16d84f2618babc4585340b757d894f6e8df614a37bbb72ff1
MD5 43fe05961799ff4c609e59f2840661d9
BLAKE2b-256 e966e4f08e04c7f0021c41d84dc43fd9decaa66de222d899c761b49ea3f40fa4

See more details on using hashes here.

Provenance

The following attestation bundles were made for trailframe-0.1.2-py3-none-any.whl:

Publisher: publish.yml on Sildra/trailframe

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.3.3

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.0

2 files

0.1.4

2 files

0.1.3

2 files

This release

0.1.2 This release

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page