mirror of
https://github.com/Genshin-bots/gsuid_core.git
synced 2025-05-12 06:55:49 +08:00
💩 修改二维码颜色
This commit is contained in:
parent
d98b3e6be0
commit
652a7de196
@ -35,7 +35,7 @@ async def get_qrcode_base64(url: str, path: Path) -> bytes:
|
||||
)
|
||||
qr.add_data(url)
|
||||
qr.make(fit=True)
|
||||
img = qr.make_image(fill_color='black', back_color='white')
|
||||
img = qr.make_image(fill_color=(255, 134, 36), back_color='white')
|
||||
assert isinstance(img, PilImage)
|
||||
|
||||
img = img.resize((700, 700)) # type: ignore
|
||||
|
Loading…
x
Reference in New Issue
Block a user