Output Options

Configure the output format and quality of your screenshots.

Format

Choose the output format:

{
  "output": {
    "format": "png"
  }
}
Format Content-Type Description
png image/png Lossless, supports transparency (default)
jpeg image/jpeg Smaller file size, no transparency
webp image/webp Modern format, best compression
pdf application/pdf PDF document output (see PDF Options)

Quality

Set image quality for JPEG and WebP formats (1-100):

{
  "output": {
    "format": "jpeg",
    "quality": 85
  }
}

Full Page

Capture the entire scrollable page:

{
  "output": {
    "full_page": true
  }
}

Element Capture

Capture a specific element:

{
  "capture": {
    "selector": "#hero-section"
  }
}

Clip Region

Capture a specific region:

{
  "capture": {
    "clip": {
      "x": 0,
      "y": 0,
      "width": 800,
      "height": 600
    }
  }
}

See Also

Was this page helpful?