Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
594bec0cb9 | ||
|
|
3ad4a2a58c |
@@ -166,7 +166,9 @@ def generateqr(url="http://nomad.hackrobot.cn",
|
||||
group_image.paste(qr_image, qr_position)
|
||||
|
||||
# 保存合成的图像
|
||||
combined_image_path = f"images/combined_{wxid}_{datetime.now()}.jpg"
|
||||
# combined_image_path = f"images/combined_{wxid}_{datetime.now()}.jpg"
|
||||
combined_image_path = f"images/combined_{wxid}_{datetime.date.today()}.jpg"
|
||||
|
||||
group_image.save(combined_image_path)
|
||||
# 压缩图片
|
||||
group_image.save(combined_image_path, "JPEG",
|
||||
|
||||
Reference in New Issue
Block a user