瀏覽代碼

Scale: 1 in webss for performance

TheHamkerCat 4 年之前
父節點
當前提交
b97c90e954
共有 1 個文件被更改,包括 2 次插入 和 2 次删除
  1. 2 2
      wbb/modules/webss.py

+ 2 - 2
wbb/modules/webss.py

@@ -33,13 +33,13 @@ from wbb.core.decorators.errors import capture_err
 from wbb.utils.http import post
 
 
-async def take_screenshot(url: str, full: bool = False) -> BytesIO:
+async def take_screenshot(url: str, full: bool = False):
     url = "https://" + url if not url.startswith("http") else url
     payload = {
         "url": url,
         "width": 1920,
         "height": 1080,
-        "scale": 2,
+        "scale": 1,
         "format": "jpeg",
     }
     if full: