mirror of
https://github.com/Murasame-Dev/McStatus-Img.git
synced 2025-12-15 12:47:58 +00:00
Apply suggestions from code review
This commit is contained in:
parent
a37b9d14f2
commit
b191e02d89
1 changed files with 0 additions and 1 deletions
|
|
@ -82,7 +82,6 @@ def create_image(background: bytes,
|
|||
# 添加半透明蒙版层以增强文字可读性
|
||||
overlay = Image.new('RGBA', (width, height), (0, 0, 0, 80)) # 半透明黑色蒙版
|
||||
image.paste(overlay, (0, 0), overlay)
|
||||
|
||||
if width // 2 > height:
|
||||
small_size = int(height * 0.8)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue