master
Aevann1 2021-09-11 05:10:41 +02:00
parent a33069e2f3
commit 9c619ba057
1 changed files with 5 additions and 3 deletions

View File

@ -73,9 +73,11 @@ def upload_imgur(filepath=None, file=None, resize=False):
def thumbnails(frames):
for frame in frames:
thumbnail = frame.copy()
thumbnail.thumbnail(size)
yield thumbnail
new_image = Image.new("RGBA", frame.size, "WHITE")
new_image.paste(i, (0, 0), i)
new_image.convert('RGB')
new_image.thumbnail(size)
yield new_image
frames = thumbnails(frames)