Add screenshot and beautify scripts for app window captures#71
Merged
Conversation
scripts/screenshot.swift finds an app's on-screen window (optionally by title substring) via CGWindowListCopyWindowInfo and shells out to screencapture -l, keeping the macOS corner radius and drop shadow in the PNG alpha. scripts/beautify.swift composites that capture onto the site's brand gradient with proportional padding. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YB7DWdZjLUzBvjaemnSBk4
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.
What & why
Adds two Swift utility scripts for capturing and beautifying app window screenshots:
scripts/screenshot.swift: Captures a single app window to PNG while preserving macOS corner radius and drop shadow in the alpha channel. Supports filtering by window title and requires Screen Recording permission. Provides helpful diagnostics when no matching window is found.scripts/beautify.swift: Composites a window screenshot onto a gradient backdrop (matching the site's brand colors) with proportional padding. Designed to work with screenshots captured byscreenshot.swiftto produce polished "nice screenshot" images for site documentation.These scripts enable automated generation of consistent, professional-looking app screenshots for marketing/documentation purposes.
How it was tested
scripts/check.shpasses (or CI will, if I'm not on a Mac)https://claude.ai/code/session_01YB7DWdZjLUzBvjaemnSBk4