--browser-width
- CLI
- --browser-width, -x
- REST
- browser_width
Sets the viewport width in logical pixels.
Example
zshot -f page.png \
-x 1280 \
https://zshot-cli.com/example_assets/hello_zshot/{
"url": "https://zshot-cli.com/example_assets/hello_zshot/",
"output_type": "png",
"browser_width": 1280
}curl -X POST http://127.0.0.1:3000/ \
-H "Content-Type: application/json" \
-d '{"url":"https://zshot-cli.com/example_assets/hello_zshot/","output_type":"png","browser_width":1280}' \
-o page.png