Generates a synthetic green-screen foreground and a gradient background in the browser,
sends them to POST /api/preview on the preview server (same host, or the
deployed fallback if same-origin has none), and shows the chroma-keyed
composite that the server-side preview renderer returns.
Ready. Click “Run preview test”.