fix bug and update

This commit is contained in:
HibiKier
2022-06-09 20:39:48 +08:00
parent 5fd687c1e4
commit 363acf37bc
8 changed files with 578 additions and 99 deletions
+4 -1
View File
@@ -681,7 +681,10 @@ class BuildImage:
right, bottom = [(value - offset) * antialias for value in ellipse_box[2:]]
draw.ellipse([left, top, right, bottom], fill=fill)
mask = mask.resize(self.markImg.size, Image.LANCZOS)
self.markImg.putalpha(mask)
try:
self.markImg.putalpha(mask)
except ValueError:
pass
async def acircle_corner(self, radii: int = 30):
"""