Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
interface Protocol.HeadlessExperimental.ScreenshotParams
import { type Protocol } from "https://deno.land/x/pptr@1.2.0/mod.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).