Skip to content

Global Config Reference

Back to Configuration overview.

PropertyTypeDefaultDescription
outputDirectorystring"heroshots"Output directory for screenshots (relative to config file)
outputFormat"png" | "jpeg""png"Image format for all screenshots
jpegQualitynumber80JPEG compression quality (1-100), only used when outputFormat is "jpeg"
browserobject-Default browser settings applied to all screenshots
browser.viewportobject-Browser viewport dimensions
browser.colorScheme"light" | "dark"-Color scheme for capture. Omit to capture both light and dark variants
browser.deviceScaleFactornumber-Device pixel ratio (1 = standard, 2 = retina, 3 = ultra-high DPI)
workersnumber-Number of parallel capture workers (default: 1)
screenshotsobject[][]Screenshot definitions
screenshots[].idstringautoUnique identifier (auto-generated if omitted)
screenshots[].namestring-Display name, also used to derive the output filename
screenshots[].urlstring-Full URL of the page to capture
screenshots[].selectorstring-CSS selector for element capture (omit for full-page)
screenshots[].paddingobject-Expand capture area beyond element bounds
screenshots[].scrollobject-Scroll position to restore before capturing
screenshots[].paddingFill"inherit" | "solid" | "transparent"-Background fill for padding area: "inherit" (default) shows page content, "solid" fills with detected background color
screenshots[].elementFill"original" | "solid" | "transparent"-Background fill for element area: "original" (default) keeps actual background, "solid" replaces with detected color
screenshots[].viewportsstring[]-Viewport variants to generate — preset names ("desktop", "tablet", "mobile") or custom "WIDTHxHEIGHT"
screenshots[].textOverridesRecord-Replace text content before capture. Keys are CSS selectors, values are replacement text
screenshots[].actionsany[]-Ordered list of actions to execute before capturing the screenshot. Actions run sequentially — each completes before the next starts.

Example

json
{
  "outputDirectory": "screenshots",
  "outputFormat": "png",
  "jpegQuality": 80,
  "browser": {},
  "workers": 4,
  "screenshots": []
}