This commit is contained in:
JerryXiao 2023-03-10 17:42:41 +08:00
parent f6be7ba070
commit e2a2a4309a

View file

@ -159,7 +159,7 @@ def draw(img):
LANCZOS = Image.Resampling.LANCZOS if getattr(Image, 'Resampling', None) else Image.LANCZOS LANCZOS = Image.Resampling.LANCZOS if getattr(Image, 'Resampling', None) else Image.LANCZOS
to_draw = Image.open(args.image).convert('RGBA').rotate(args.rotate).resize((X, Y), LANCZOS) to_draw = Image.open(args.image).convert('RGBA').rotate(args.rotate).resize((X, Y), LANCZOS)
while True: while True:
ldraw = img.copy() ldraw = img
draw(to_draw) draw(to_draw)
if not args.keepdrawing: if not args.keepdrawing:
break break