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