https://github.com/fortio/webscreenshot
Take a screenshot of a Web page after giving it a delay for rendering
https://github.com/fortio/webscreenshot
cli headless screenshot
Last synced: about 1 month ago
JSON representation
Take a screenshot of a Web page after giving it a delay for rendering
- Host: GitHub
- URL: https://github.com/fortio/webscreenshot
- Owner: fortio
- License: apache-2.0
- Created: 2025-04-14T18:30:43.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-11-12T00:41:27.000Z (8 months ago)
- Last Synced: 2025-11-12T02:32:55.694Z (8 months ago)
- Topics: cli, headless, screenshot
- Language: Go
- Homepage:
- Size: 34.2 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# webscreenshot
[](https://goreportcard.com/report/github.com/fortio/webscreenshot)
[](https://github.com/fortio/webscreenshot/releases/)
[](https://github.com/fortio/webscreenshot/actions/workflows/include.yml)
[](https://github.com/fortio/webscreenshot/actions/workflows/include.yml)
Take a (headless) screenshot of a Web page after giving it a delay for rendering (so dynamic pages can easily get captured).
## Install
using golang 1.21+
```shell
go install github.com/fortio/webscreenshot@latest
```
You can also download one of the many binary [releases](https://github.com/fortio/webscreenshot/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`
## Usage
```bash
webscreenshot [-delay duration -width w -height h] URL > screenshot.png
```
(`webscreenshot help` for all the options)
e.g
```bash
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
```