Skip to content

Commit 1183847

Browse files
kathaylToriLindsay
andauthored
Update browser-rendering.yaml (#24101)
* Update browser-rendering.yaml clarify viewport is for screenshot endpoint * Update screenshot-endpoint.mdx add what the default viewport is * Update src/content/release-notes/browser-rendering.yaml Co-authored-by: ToriLindsay <[email protected]> * Apply suggestions from code review --------- Co-authored-by: ToriLindsay <[email protected]>
1 parent b65f193 commit 1183847

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/content/docs/browser-rendering/rest-api/screenshot-endpoint.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@ console.log(screenshot.status);
4949

5050
For more options to control the final screenshot, like `clip`, `captureBeyondViewport`, `fullPage` and others, check the endpoint [reference](/api/resources/browser_rendering/subresources/screenshot/methods/create/).
5151

52-
:::note
53-
The `quality` parameter is not compatible with the default `.png` format and will return a 400 error. If you set `quality`, you must also set `type` to `.jpeg` or another supported format.
52+
:::note[Notes for basic usage]
53+
- The `quality` parameter is not compatible with the default `.png` format and will return a 400 error. If you set `quality`, you must also set `type` to `.jpeg` or another supported format.
54+
- By default, the browser viewport is set to **1920×1080**. You can override the default via request options.
5455
:::
5556

5657
## Advanced usage

src/content/release-notes/browser-rendering.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ entries:
1212
* Local development with `npx wrangler dev` now supports [Playwright](/browser-rendering/platform/playwright/) when using Browser Rendering. Upgrade to the latest version of wrangler to get started.
1313
* The [`/content` endpoint](/browser-rendering/rest-api/content-endpoint/) now returns the page's title, making it easier to identify pages.
1414
* The [`/json` endpoint](/browser-rendering/rest-api/json-endpoint/) now allows you to specify your own AI model for the extraction, using the `custom_ai` parameter.
15-
* The default viewport size has been increased from 800x600 to 1920x1080. You can still override the viewport via request options.
15+
* The default viewport size on the [`/screenshot` endpoint](/browser-rendering/rest-api/screenshot-endpoint/) has been increased from 800x600 to 1920x1080. You can still override the viewport via request options.
1616
- publish_date: "2025-07-25"
1717
title: "@cloudflare/puppeteer 1.0.4 released"
1818
description: |-

0 commit comments

Comments
 (0)