Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
interface default.HeadlessExperimental.ScreenshotParams
import { type default } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/api-docs-entry.d.ts";
const { ScreenshotParams } = default.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).