Repository navigation
Find pictures on the web for backgrounds and overlays - #57
Merged
Merged
Conversation
Footage Search gets a Web pictures tab beside the library, for every picture purpose (a scene, a placeholder, an overlay, the background, the watermark), never for a sound. It searches through Gecko Suite's image search (GET /api/web/images), and choosing a picture files it in GAM (POST /api/gam/import-image, over GAM's import-image) and hands back a library hit, so every existing way of placing a library picture places it. A render never reads a web address. The assistant's find_images tool shortlists: it leaves up to 12 candidates on a search placeholder (a scene's picture, an overlay or the background) for the person to choose from, and never puts a web picture on screen itself. Offered only where the suite is. Resolving the placeholder drops the shortlist. The Web tab and the prompt say the rights are unknown. Spec: SearchAsset.candidates (S7). Plan: GAM-14. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V1geD3rf5gNTeFwCtstRx7
davior
marked this pull request as ready for review
November 20, 2026 22:43
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Find pictures on the web that match the video, for a scene, an overlay or the background, and file the chosen one in GAM. It needs davior/gecko-suite#25 (image search) and davior/gam#79 (import a picture by its address).
Editor: Footage Search gets a Web pictures tab beside Library. It's offered for every picture purpose (a scene, a placeholder, an overlay, the background, the watermark) and never for a sound.
GET /api/web/images, credited to the project) and shows the sites' thumbnails, with the source page, size, and "who may use this picture is unknown".POST /api/gam/import-image: GAM downloads and files it, and the editor gets a library hit. Every existing way of placing a library picture places it, and a render never reads a web address.Assistant:
find_images(query, segment_id?, use_as: visual | overlay | background | none)leaves up to 12 candidates on asearchplaceholder and tells the model the person chooses. It never puts a web picture on screen itself: the user chose "it proposes, you pick". The tool is offered only where the suite is, capped at 6 searches a turn, and the prompt says web pictures are never cleared.Spec (S7):
SearchAsset.candidates, a list ofWebCandidate(max 12, fields length-capped). Resolving the placeholder drops the shortlist.Docs: the plan's S7 and GAM-14, and CLAUDE.md's "the web is a reading tool" bullet now names the one exception.
Test plan
cd backend && pytest -q: 868 passed.tests/test_web_images.pycovers:use_ascd frontend && npm test && npm run lint && npm run build: 249 tests pass, lint and build are clean. New tests cover search → import → hit, opening on a shortlist without searching again, GAM's refusal shown, no Web for a sound, andresolveSearchdropping the shortlist.Deployment
Standard redeploy (backend and frontend). No migration, no new configuration. Needs
AI_BACKEND=suite, and an image-capable search backend (Tavily, Brave or SearXNG) set up in Gecko Suite.Generated by Claude Code