zshot/cliDownload

--image-selector

CLI
--image-selector
ValueSELECTOR

Crops the image to the element matching this CSS selector. The element’s size sets the output dimensions, which --image-width and --image-height override. An invalid selector or one that matches nothing exits the process.

Example

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