--device
- CLI
- --device
- REST
- device
Emulates a device preset, including viewport, scale factor and user agent. A flag such as --emulate-memory or --platform outranks the preset.
Example
zshot -f page.png \
--device iPhone15Pro \
https://zshot-cli.com/example_assets/hello_zshot/{
"url": "https://zshot-cli.com/example_assets/hello_zshot/",
"output_type": "png",
"device": "iPhone15Pro"
}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","device":"iPhone15Pro"}' \
-o page.png