From b20f8ea2f4efccf7cda225a7b2fb1291d97ec75d Mon Sep 17 00:00:00 2001 From: nesty92 Date: Thu, 7 Dec 2023 09:40:57 +0100 Subject: [PATCH] wip --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e763d07..5e08f93 100644 --- a/README.md +++ b/README.md @@ -419,8 +419,9 @@ $navigation->waitForNavigation(); // take a screenshot $screenshot = $page->screenshot([ - 'format' => 'jpeg', // default to 'png' - possible values: 'png', 'jpeg', - 'quality' => 80, // only if format is 'jpeg' - default 100 + 'format' => 'jpeg', // default to 'png' - possible values: 'png', 'jpeg', 'webp' + 'quality' => 80, // only when format is 'jpeg' or 'webp' - default 100 + 'optimizeForSpeed' => true // default to 'false' - Optimize image encoding for speed, not for resulting size ]); // save the screenshot @@ -470,7 +471,7 @@ $navigation->waitForNavigation(); $screenshot = $page->screenshot([ 'captureBeyondViewport' => true, 'clip' => $page->getFullPageClip(), - 'format' => 'jpeg', // default to 'png' - possible values: 'png', 'jpeg', + 'format' => 'jpeg', // default to 'png' - possible values: 'png', 'jpeg', 'webp' ]); // save the screenshot