Beta, untested. Capture promotional screenshots from the real running game: store size 1920x1080, phone 1080x1920, square, and a 630x500 itch.io cover cropped from a real frame; the game is played by script and similar frames are dropped so the kept shots are varied; debug text and the cursor are hidden. For WebGL games, use the viewer's preview or check_gpu_render. Use for "screenshots", "stor...
Download skill (.zip) Files on GitHubGame screenshot capture
Beta: this skill is new and has not been tested yet. It is still being improved. Check its results carefully and say what goes wrong.
2D and page-based games
python3 scripts/capture.py http://localhost:8080 --out shots
python3 scripts/capture.py URL --sizes store,phone,cover --start "#play" --keys "ArrowLeft,ArrowRight,Space" --hide "#fps"
python3 scripts/capture.py URL --tap --seconds 40 --keep 6 # touch games
Output: store-01.png…, phone-01.png…, cover-630x500.png. Every shot is a real frame of the game.
WebGL and WebGPU games
Don’t load them in the sandbox browser (no GPU). Use look_at_preview on the viewer’s preview, or check_gpu_render with
scripted actions, and resize the frames with Pillow. For screenshots from a recording, bash-store-page-kit’s media script
takes frames from a video.
Picking shots
Look at each one. Good shots show the game being played at its best moment: several things on screen, the player clearly visible, no menus or pause screens. Five is plenty. The first one is the most important: it’s what people see in lists.
For better moments, use --setup to start at a later level or turn on a debug start, and turn it off again afterwards.
Pitfalls
Title screens as screenshots, debug text in shots, blurry upscales, mock-ups that don’t show the real game, and covers with the important part cropped off.