forked from rDrama/rDrama
master
parent
a33069e2f3
commit
9c619ba057
|
@ -73,9 +73,11 @@ 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()
|
new_image = Image.new("RGBA", frame.size, "WHITE")
|
||||||
thumbnail.thumbnail(size)
|
new_image.paste(i, (0, 0), i)
|
||||||
yield thumbnail
|
new_image.convert('RGB')
|
||||||
|
new_image.thumbnail(size)
|
||||||
|
yield new_image
|
||||||
|
|
||||||
frames = thumbnails(frames)
|
frames = thumbnails(frames)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue