Research: match neighborhood photos to articles for full-page backdrops
Back to our planProblem
In plain words: the owner wants many more neighborhood photos on the site, with each article getting the photo that suits it, shown as a backdrop that fills most of the page. With more photos and more articles, something has to choose which photo goes with which article. We don't yet know the simplest reliable way to do that.
Summary of the owner's direction (2026-11-16, Claude session, voice then text): research what exists for matching his own neighborhood photos to articles, so each backdrop fits its article well; attach anything promising as something to check out. Research first, no building.
What exists today:
- The look is decided (owner, 2026-11-16, Claude session, voice then text): a photo behind the whole page, top to bottom, faded; the theme's background color solid behind dense text and thinner where there is little or none; a deliberate crop per screen size that works with the layout. The title strip is not what he wants. Building it is #1268; the standing rule is #1269. This replaces the "decorative bands only" approach in #619.
- A page and a post can each carry a
backdropphoto an editor picks by hand (#777, #1024), with rules for the visible band (docs/guidelines/images.md). - Each category has a default image, and an AI agent's suggestion can carry an image link for an editor to approve (#362, #363).
- Every photo passes the privacy check first: location data, house numbers, people, plates (#602).
Options to check out
In our usual order: what we have, then plugins, then open source. From a first search on 2026-11-16; none is tested yet.
- What we have. Give each photo a few subject tags in the media library once, and match on a post's category and tags. With a small set of photos this may be all that is needed.
- An AI agent that looks at the photos. The content pipeline's agent describes each photo once, then proposes the best fit when it drafts a post; an editor approves. No new package.
- A free model that runs on our own server. Models of the CLIP family place a photo and a text in the same space and score how well they match. Transformers.js, opens in a new tab runs such models in Node with no Python server (SigLIP model card, opens in a new tab). Matching news text to pictures this way has been studied, opens in a new tab.
- A Payload plugin.
payloadcms-vectorize, opens in a new tab adds vector search, but its listed adapters are Postgres, MongoDB and Cloudflare; this site runs on SQLite. Payload's own AI search is an enterprise offer.
Proposed fix
- Count the photos we expect. The look itself is decided (above).
- Try options 1 to 3 on the photos already shared and a handful of real posts; record which picks a person agrees with.
- Check cost, server load and upkeep for each, and the package rules for any new dependency.
- Bring the owner a recommendation. An editor always approves the pick.
Acceptance criteria
- Not done: Each option is tried or ruled out with a reason, with sources.
- Not done: The trial's picks are recorded for the owner to judge.
- Done: The backdrop look is agreed with the owner (2026-11-16; built in #1268).
- Not done: A recommendation is recorded here; nothing is built in this issue.
Files likely touched
None
Research only; building gets its own issue.
Must not touch
None
Generated by Claude Code, opens in a new tab