--device-scale-factor
- CLI
- --device-scale-factor
Sets the device pixel ratio: how many image pixels render each logical pixel. 2 captures the default 1920×1080 viewport as a 3840×2160 image.
Example
zshot -f page.png \
--device-scale-factor 2 \
https://zshot-cli.com/example_assets/hello_zshot/{
"url": "https://zshot-cli.com/example_assets/hello_zshot/",
"output_type": "png",
"device_scale_factor": 2
}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_scale_factor":2}' \
-o page.png