--storage-limit
- CLI
- --storage-limit
- REST
- storage_limit
Caps the size of the --storage file. A larger file is refused. When writing, ZShot leaves out and logs each item that would pass the limit.
Example
zshot -f page.png \
--storage session.json \
--storage-limit 1048576 \
https://zshot-cli.com/example_assets/hello_zshot/{
"url": "https://zshot-cli.com/example_assets/hello_zshot/",
"output_type": "png",
"with_storage": true,
"storage_limit": 1048576
}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","with_storage":true,"storage_limit":1048576}' \
-o page.png