Skip to content

Commit

Permalink
Reduce screenshot size
Browse files Browse the repository at this point in the history
  • Loading branch information
silasprincipe authored Oct 9, 2024
1 parent aa06b09 commit d9083be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/scripts/render_and_screenshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit d9083be

Please sign in to comment.