feat: --size WxH — the widget footprint becomes a flag#2
Open
liuzl wants to merge 1 commit into
Open
Conversation
The window was fixed at 450x600. The camera fov is vertical, so any size shows the same framing scaled (changing the aspect ratio crops horizontally) — a smaller desk companion is now `pocket-character --size 300x400`, no rebuild. Headless modes honor the flag too, so parity screenshots at other sizes come free. Verify: target/release/pocket-character --headless-shot s.png --size 300x400 (PNG is 300x400; framing identical to the default, scaled). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
Problem
The window is fixed at 450×600 (
resizable: false, hardcoded const). A smaller desk companion — half the screen real estate, same character — currently means editing source and rebuilding.Change
--size WxH(default unchanged: 450×600, airi's stage geometry). The camera fov is vertical, so any size shows the same framing scaled; changing the aspect ratio crops horizontally. Headless modes honor the flag too, so parity screenshots at other sizes come free. README's widget bullet documents it.Verify
target/release/pocket-character --headless-shot s.png --size 300x400 # → PNG is 300×400; framing identical to the default, scaled🤖 Generated with Claude Code