docs: add webp to captureScreenshot.format (#10295)
This commit is contained in:
parent
74becdb6a0
commit
27db1eb4f4
@ -36,7 +36,7 @@ Options object which might have the following properties:
|
|||||||
|
|
||||||
- `path` : The file path to save the image to. The screenshot type will be inferred from file extension. If `path` is a relative path, then it is resolved relative to [current working directory](https://nodejs.org/api/process.html#process_process_cwd). If no path is provided, the image won't be saved to the disk.
|
- `path` : The file path to save the image to. The screenshot type will be inferred from file extension. If `path` is a relative path, then it is resolved relative to [current working directory](https://nodejs.org/api/process.html#process_process_cwd). If no path is provided, the image won't be saved to the disk.
|
||||||
|
|
||||||
- `type` : Specify screenshot type, can be either `jpeg` or `png`. Defaults to 'png'.
|
- `type` : Specify screenshot type, can be `jpeg`, `png` or `webp`. Defaults to 'png'.
|
||||||
|
|
||||||
- `quality` : The quality of the image, between 0-100. Not applicable to `png` images.
|
- `quality` : The quality of the image, between 0-100. Not applicable to `png` images.
|
||||||
|
|
||||||
|
@ -2248,7 +2248,7 @@ export class Page extends EventEmitter {
|
|||||||
* | current working directory}.
|
* | current working directory}.
|
||||||
* If no path is provided, the image won't be saved to the disk.
|
* If no path is provided, the image won't be saved to the disk.
|
||||||
*
|
*
|
||||||
* - `type` : Specify screenshot type, can be either `jpeg` or `png`.
|
* - `type` : Specify screenshot type, can be `jpeg`, `png` or `webp`.
|
||||||
* Defaults to 'png'.
|
* Defaults to 'png'.
|
||||||
*
|
*
|
||||||
* - `quality` : The quality of the image, between 0-100. Not
|
* - `quality` : The quality of the image, between 0-100. Not
|
||||||
|
Loading…
Reference in New Issue
Block a user