mirror of
https://github.com/NanmiCoder/MediaCrawler.git
synced 2026-05-26 20:47:28 +08:00
Merge branch 'NanmiCoder:main' into main
This commit is contained in:
@@ -24,7 +24,7 @@ from io import BytesIO
|
|||||||
from typing import Dict, List, Optional, Tuple, cast
|
from typing import Dict, List, Optional, Tuple, cast
|
||||||
|
|
||||||
import httpx
|
import httpx
|
||||||
from PIL import Image, ImageDraw
|
from PIL import Image, ImageDraw, ImageShow
|
||||||
from playwright.async_api import Cookie, Page
|
from playwright.async_api import Cookie, Page
|
||||||
|
|
||||||
from . import utils
|
from . import utils
|
||||||
@@ -88,6 +88,7 @@ def show_qrcode(qr_code) -> None: # type: ignore
|
|||||||
new_image.paste(image, (10, 10))
|
new_image.paste(image, (10, 10))
|
||||||
draw = ImageDraw.Draw(new_image)
|
draw = ImageDraw.Draw(new_image)
|
||||||
draw.rectangle((0, 0, width + 19, height + 19), outline=(0, 0, 0), width=1)
|
draw.rectangle((0, 0, width + 19, height + 19), outline=(0, 0, 0), width=1)
|
||||||
|
del ImageShow.UnixViewer.options["save_all"]
|
||||||
new_image.show()
|
new_image.show()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user