remotes/1693045480750635534/spooky-22
Aevann1 2021-09-13 18:58:25 +02:00
parent 25cf0a9a27
commit d0d2219f8e
1 changed files with 1 additions and 2 deletions

View File

@ -19,11 +19,10 @@ def upload_ibb(file=None, resize=False):
frames = ImageSequence.Iterator(i)
if resize:
size = 100, 100
def thumbnails(frames):
for frame in frames:
thumbnail = frame.copy()
: thumbnail.thumbnail(size, IImage.ANTIALIAS)
: thumbnail.thumbnail(100, 100, IImage.ANTIALIAS)
yield thumbnail
frames = thumbnails(frames)