Fixed crashes of gifterm when displaying certain GIFs
This commit is contained in:
parent
755b369ff9
commit
67a0cf000a
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ def main():
|
||||||
frame.putpalette(palette)
|
frame.putpalette(palette)
|
||||||
c = frame.convert("RGBA")
|
c = frame.convert("RGBA")
|
||||||
|
|
||||||
if img.info['background'] != img.info['transparency']:
|
if img.info['background'] != img.info.get('transparency'):
|
||||||
last_frame.paste(c, c)
|
last_frame.paste(c, c)
|
||||||
else:
|
else:
|
||||||
last_frame = c
|
last_frame = c
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue