zshot/cliDownload

--image-selector

CLI
--image-selector
ValueSELECTOR

Crops the image to the element matching this CSS selector. The element’s size will determine the output size, which --image-width and --image-height override. An invalid or selector that matches nothing will cause an error.

Example

Run locally
zshot -f main.png \
  --image-selector "main" \
  https://zshot-cli.com/example_assets/gazette/