Animated GIF
Requires a Standard license
Record the Teatime with ZShot teapot orbit as a looping GIF, saved to teapot.gif.
zshot -f teapot.gif -x 600 -y 375 --wait-for js:teapot:ready --image-duration 5 --image-framerate 12 https://zshot-cli.com/example_assets/teatime/{
"url": "https://zshot-cli.com/example_assets/teatime/",
"output_type": "gif",
"browser_width": 600,
"browser_height": 375,
"wait_for": "js:teapot:ready",
"image_duration": 5,
"image_framerate": 12
}curl -X POST http://127.0.0.1:3000/ \
-H "Content-Type: application/json" \
-d '{"url":"https://zshot-cli.com/example_assets/teatime/","output_type":"gif","browser_width":600,"browser_height":375,"wait_for":"js:teapot:ready","image_duration":5,"image_framerate":12}' \
-o teapot.gif
See --image-duration for length and --image-framerate for rate.