fd
This commit is contained in:
parent
963d289451
commit
23ab62dcd9
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue