--emulate-mobile-device
- CLI
- --emulate-mobile-device
- REST
- emulate_mobile
Lays the page out as a mobile browser does: the page’s viewport meta tag applies, and a page without one lays out 980 pixels wide.
Example
zshot -f page.png \
-x 390 \
-y 844 \
--emulate-mobile-device \
https://zshot-cli.com/example_assets/hello_zshot/{
"url": "https://zshot-cli.com/example_assets/hello_zshot/",
"output_type": "png",
"browser_width": 390,
"browser_height": 844,
"emulate_mobile": true
}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":390,"browser_height":844,"emulate_mobile":true}' \
-o page.png