HeadlessExperimental.ScreenshotParams

Encoding options for a screenshot.

{
  "id": "ScreenshotParams",
  "type": "object",
  "properties": [
    {
      "name": "format",
      "type": "string",
      "optional": true,
      "enum": [
        "jpeg",
        "png"
      ],
      "description": "Image compression format (defaults to png)."
    },
    {
      "name": "quality",
      "type": "integer",
      "optional": true,
      "description": "Compression quality from range [0..100] (jpeg only)."
    }
  ],
  "description": "Encoding options for a screenshot."
}