~/dev.log

cd ..

Series Introduction: Automating the Darkroom

2025-12-31•#AI#Photography#Automation#Self-Hosted#Spring AI

A roadmap for using Self-Hosted AI to overhaul my photography workflow

As a photographer, I have thousands of images. As a developer, I absolutely detest manual data entry.

My new site architecture allows for rich metadata like titles, descriptions, tags, and even dominant colors. But populating this manually for hundreds of photos is a mountain I am not prepared to climb. I’d rather be shooting or coding than typing "sunset, orange, clouds" five hundred times.

The Series Roadmap

This post marks the beginning of a technical deep-dive series. Over the coming weeks, I will document my journey in building a "curator bot" that integrates deeply with my home infrastructure.

The goal? A fully automated metadata pipeline that runs entirely on my own hardware.

The NAS-Centric Pipeline

The plan centers around a robust workflow on my Synology NAS. Here is what we will build in this series:

Part 1: The Watcher

We'll start by building a service that monitors the NAS for new uploads from SD cards. It needs to be efficient, identifying new RAW and JPEG files without bogging down the system.

Part 2: The Model Gateway (Spring AI)

We need a robust backend to handle the analysis. I plan to build a service using Spring AI that acts as a unified gateway capable of switching between models on the fly.

  • The Power of Spring AI: Leveraging the framework's portable API design to decouple my code from specific model providers.
  • Flexibility: We will implement a strategy pattern to swap implementations between Ollama (local LLaVA) and OpenAI/Gemini (cloud) via simple configuration changes.
  • Cost vs. Privacy: Use local models for bulk tagging (free and private) and "upgrade" to cloud models for portfolio highlights if deeper nuance is needed.

Part 3: The Metadata Database

We need a place to store this insights. We'll design a schema for a local database (likely Postgres or SQLite) running on the NAS to index this rich metadata alongside the file paths.

Part 4: Curate & Publish to S3

Finally, we'll build the bridge to the public web.

  • A selection mechanism to flag "portfolio-worthy" shots.
  • An uploader script that pushes these assets to AWS S3.
  • An exporter that generates the gallery.json for this website.

Why This Architecture?

This approach separates storage from presentation and prioritizes Data Sovereignty. By using self-hosted models, the intelligence lives with the data.

Join me as I connect these two worlds: the art of photography and the science of local AI.