IotaCluster commited on
Commit
925a534
·
verified ·
1 Parent(s): 1c94dc0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -14,7 +14,7 @@ def take_screenshot(url):
14
  wd = None
15
  try:
16
  wd = webdriver.Chrome(options=options)
17
- wd.set_window_size(1920, 1080) # Set window size to 1920x1080
18
  wd.get(url)
19
  time.sleep(5)
20
  screenshot = wd.get_screenshot_as_png()
@@ -27,7 +27,7 @@ def take_screenshot(url):
27
 
28
  # Center crop to 900x900
29
  width, height = image.size
30
- crop_size = 900
31
  left = (width - crop_size) // 2
32
  top = (height - crop_size) // 2
33
  right = left + crop_size
 
14
  wd = None
15
  try:
16
  wd = webdriver.Chrome(options=options)
17
+ wd.set_window_size(1280, 1280) # Set window size to 1920x1080
18
  wd.get(url)
19
  time.sleep(5)
20
  screenshot = wd.get_screenshot_as_png()
 
27
 
28
  # Center crop to 900x900
29
  width, height = image.size
30
+ crop_size = 150
31
  left = (width - crop_size) // 2
32
  top = (height - crop_size) // 2
33
  right = left + crop_size