puppeteer/new-docs/puppeteer.protocol.headlessexperimental.screenshotparams.md

22 lines
968 B
Markdown
Raw Normal View History

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [puppeteer](./puppeteer.md) &gt; [Protocol](./puppeteer.protocol.md) &gt; [HeadlessExperimental](./puppeteer.protocol.headlessexperimental.md) &gt; [ScreenshotParams](./puppeteer.protocol.headlessexperimental.screenshotparams.md)
## Protocol.HeadlessExperimental.ScreenshotParams interface
Encoding options for a screenshot.
<b>Signature:</b>
```typescript
export interface ScreenshotParams
```
## Properties
| Property | Type | Description |
| --- | --- | --- |
| [format](./puppeteer.protocol.headlessexperimental.screenshotparams.format.md) | ('jpeg' \| 'png') | Image compression format (defaults to png). (ScreenshotParamsFormat enum) |
| [quality](./puppeteer.protocol.headlessexperimental.screenshotparams.quality.md) | [integer](./puppeteer.protocol.integer.md) | Compression quality from range \[0..100\] (jpeg only). |