--image-width
- CLI
- --image-width
- REST
- image_width
Scales the image to this width in pixels. Without --image-height, the height will be the browser height.
Example
zshot -f page.png \
--image-width 960 \
--image-height 540 \
https://zshot-cli.com/example_assets/hello_zshot/{
"url": "https://zshot-cli.com/example_assets/hello_zshot/",
"output_type": "png",
"image_width": 960,
"image_height": 540
}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","image_width":960,"image_height":540}' \
-o page.png