the "screenshotOptions.quality" flag is

the "screenshotOptions.quality" flag is broken. Whenever I add it, the request fails.
3 Replies
Unknown User
Unknown User3mo ago
Message Not Public
Sign In & Join Server To View
pao ramen
pao ramenOP3mo ago
yes! this was the bug.
Kathy
Kathy3mo ago
When setting quality, the type cant be png, which is the default, but the error message says so screenshotOptions.quality cannot be set when type is 'png'.and a 400 is returned. Otherwise, here's an example of a successful request: { "url": "https://example.com", "viewport": { "width": 1920, "height": 1220, "deviceScaleFactor": 2 }, "screenshotOptions": { "fullPage": true, "quality": 100, "type": "jpeg" } }

Did you find this page helpful?