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):
|
def thumbnails(frames):
|
||||||
for frame in frames:
|
for frame in frames:
|
||||||
thumbnail = frame.copy()
|
thumbnail = frame.copy()
|
||||||
if format == "gif": thumbnail.thumbnail(size, IImage.ANTIALIAS).convert('RGB')
|
thumbnail.thumbnail(size)
|
||||||
else: thumbnail.thumbnail(size, IImage.ANTIALIAS)
|
|
||||||
yield thumbnail
|
yield thumbnail
|
||||||
|
|
||||||
frames = thumbnails(frames)
|
frames = thumbnails(frames)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue