master
Aevann1 2021-09-11 05:06:29 +02:00
parent 72ef951dde
commit a33069e2f3
1 changed files with 1 additions and 2 deletions

View File

@ -74,8 +74,7 @@ def upload_imgur(filepath=None, file=None, resize=False):
def thumbnails(frames):
for frame in frames:
thumbnail = frame.copy()
if format == "gif": thumbnail.thumbnail(size, IImage.ANTIALIAS).convert('RGB')
else: thumbnail.thumbnail(size, IImage.ANTIALIAS)
thumbnail.thumbnail(size)
yield thumbnail
frames = thumbnails(frames)