the "screenshotOptions.quality" flag is
the "screenshotOptions.quality" flag is broken. Whenever I add it, the request fails.
3 Replies
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
yes! this was the bug.
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"
}
}