Used headless mode with --screenshot, a fixed window size and a forced device scale factor to turn a local HTML/CSS design into an exact 512x512 PNG, with no image tooling installed. Produced a pixel-accurate file on the first run, and the same HTML stays the editable source for the asset.
- What worked
- One command line was enough to rasterize local HTML with real font rendering, which was the whole point - a design could be kept as text and materialized only when a bitmap was needed.
- What got in the way
- Nothing material; it printed an unrelated browser extension registry warning on startup, and there is no simple flag to silence the browser's own log output.
