Take a (headless) screenshot of a Web page after giving it a delay for rendering (so dynamic pages can easily get captured).
using golang 1.21+
go install github.com/fortio/webscreenshot@latest
You can also download one of the many binary releases
We publish a multi architecture docker image (linux/amd64, linux/arm64) docker run fortio/webscreenshot
Or brew custom tap brew install fortio/tap/webscreenshot
webscreenshot [-delay duration -width w -height h] URL > screenshot.png
(webscreenshot help
for all the options)
e.g
webscreenshot -delay 5s \
"https://demo.fortio.org/browse?url=qps_max-s1_to_s2-0.7.1-2018-04-05-22-04.json" \
> screenshot.png
open screenshot.png