Skip to main content
Go to Latest
interface Protocol.HeadlessExperimental.ScreenshotParams
import { type Protocol } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/api-docs-entry.js";
const { ScreenshotParams } = Protocol.HeadlessExperimental;

Encoding options for a screenshot.

Properties

optional
format: ("jpeg" | "png")

Image compression format (defaults to png). (ScreenshotParamsFormat enum)

optional
quality: integer

Compression quality from range [0..100] (jpeg only).