Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,9 @@ def imGreyAlpha(im):
|
|
17 |
im2 = Image.new(mode="RGBA", size=(w, h), color=(255,255,255,0)) # 新建图片
|
18 |
draw = ImageDraw.Draw(im2) # 获取绘制句柄
|
19 |
|
|
|
20 |
w,h = im.size # 获取图片大小
|
|
|
21 |
|
22 |
# 遍历像素点
|
23 |
for i in range(w):
|
|
|
17 |
im2 = Image.new(mode="RGBA", size=(w, h), color=(255,255,255,0)) # 新建图片
|
18 |
draw = ImageDraw.Draw(im2) # 获取绘制句柄
|
19 |
|
20 |
+
print(im.size)
|
21 |
w,h = im.size # 获取图片大小
|
22 |
+
|
23 |
|
24 |
# 遍历像素点
|
25 |
for i in range(w):
|