johnhelf commited on
Commit
e1ac74c
·
1 Parent(s): 2a2622d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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):