fd
This commit is contained in:
parent
8a6de4be4c
commit
bd61643a84
1 changed files with 1 additions and 2 deletions
|
@ -67,11 +67,10 @@ def upload_imgur(filepath=None, file=None, resize=False):
|
|||
else: format = filepath.split('.')[-1].lower().replace('jpg','png').replace('jpeg','png')
|
||||
|
||||
if resize:
|
||||
i = IImage.open(filepath).convert("RGBA")
|
||||
i = IImage.open(filepath)
|
||||
size = 100, 100
|
||||
frames = ImageSequence.Iterator(i)
|
||||
|
||||
|
||||
def thumbnails(frames):
|
||||
for frame in frames:
|
||||
new_image = IImage.new("RGBA", frame.size, "WHITE")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue