Skip to content

feat: Screenshot utility for visual asset capture #33

@madjin

Description

@madjin

Summary

Add a screenshot utility that captures visuals from URLs found in daily facts files. These screenshots serve as reference material for poster generation and future video compositions.

Motivation

  • Add visual entropy to AI-generated posters
  • Create time-capsule snapshots of referenced content
  • Build foundation for remotion.dev video pipeline

Proposed Solution

Smart URL Handling

  • GitHub URLs → Fetch OpenGraph preview images (fast, no browser)
  • Twitter/X URLs → Fetch card images or skip
  • Other URLs → Full Playwright screenshot (1920x1080)

New Script

scripts/posters/utils/screenshot.py

# From facts file
python scripts/posters/utils/screenshot.py --from-facts the-council/facts/2025-12-21.json

# Single URL
python scripts/posters/utils/screenshot.py https://example.com -o screenshot.png

# Batch from URL list
python scripts/posters/utils/screenshot.py -f urls.txt -o screenshots/

Output Structure

posters/screenshots/2025-12-21/
├── github-elizaos-eliza-pull-6215.png
├── github-elizaos-eliza-issues-6235.png
└── manifest.json

Implementation Phases

  1. Phase 1: Core screenshot utility with Playwright
  2. Phase 2: Facts file URL extraction
  3. Phase 3: Integration with illustrate.py batch mode

Dependencies

  • playwright>=1.40.0

Future

  • Screenshot sheet montage (like icon_sheet.py)
  • Remotion.dev video compositions

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions