From d9083be54c791447e8429e0a1286bec1bf7718c8 Mon Sep 17 00:00:00 2001 From: silasprincipe <53846571+silasprincipe@users.noreply.github.com> Date: Wed, 9 Oct 2024 15:48:53 +0200 Subject: [PATCH] Reduce screenshot size --- .github/scripts/render_and_screenshot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/scripts/render_and_screenshot.py b/.github/scripts/render_and_screenshot.py index bbf95d4..d71d67a 100644 --- a/.github/scripts/render_and_screenshot.py +++ b/.github/scripts/render_and_screenshot.py @@ -54,7 +54,7 @@ def capture_screenshot(html_content, output_path): driver.get(f"file://{os.path.abspath('temp.html')}") time.sleep(2) # Allow time for rendering - driver.set_window_size(1200, 1000) + driver.set_window_size(1200, 800) driver.save_screenshot(output_path) driver.quit() os.remove("temp.html")