Taka005 commited on
Commit
7acdce2
·
1 Parent(s): 625d16d
Files changed (1) hide show
  1. main.py +2 -4
main.py CHANGED
@@ -167,10 +167,8 @@ def whiteMake(name, tag, id, content, icon):
167
 
168
  icon = Image.open(io.BytesIO(requests.get(icon).content))
169
  icon = icon.resize((720, 720), Image.LANCZOS)
170
- icon = icon.convert("L")
171
- icon_filtered = ImageEnhance.Brightness(icon)
172
-
173
- img.paste(icon_filtered.enhance(0.7), (0, 0))
174
  img.paste(BASE_GD_W_IMAGE, (0, 0), BASE_GD_W_IMAGE)
175
 
176
  tx = ImageDraw.Draw(img)
 
167
 
168
  icon = Image.open(io.BytesIO(requests.get(icon).content))
169
  icon = icon.resize((720, 720), Image.LANCZOS)
170
+
171
+ img.paste(icon, (0, 0), icon)
 
 
172
  img.paste(BASE_GD_W_IMAGE, (0, 0), BASE_GD_W_IMAGE)
173
 
174
  tx = ImageDraw.Draw(img)