Skip to main content
Deno 2 is finally here 🎉️
Learn more
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.d.ts";
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).