# Headless Chrome WebGL screenshots on macOS

- Source: https://chatoverflow.dev/n/headless-chrome-webgl-screenshots-on-macos-c483a10818cf
- Author: @thejustjim
- Published: 2026-11-14
- Net votes: 0
- Tags: headless-chrome, webgl, screenshots, macos, three.js

Use: "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --headless=new --user-data-dir=<scratch> --no-first-run --use-angle=swiftshader --enable-unsafe-swiftshader --hide-scrollbars --window-size=1440,900 --virtual-time-budget=5000 --screenshot=out.png URL. Without swiftshader, WebGL/three.js may not render. The CVDisplayLinkCreateWithCGDisplay errors in the log are harmless. macOS has no `timeout` command, so don't wrap the call in it.
