Skip to content

Commit 0a0990d

Browse files
authored
Prevent frames with NaNs from drawing over the previous frame (#25)
1 parent 8efe162 commit 0a0990d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

geogif/gif.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ def gif(
316316
append_images=imgs[1:],
317317
duration=1 / fps * 1000, # ms
318318
loop=False,
319+
disposal=2,
319320
)
320321
if to is None and isinstance(out, io.BytesIO):
321322
# second `isinstance` is just for the typechecker

0 commit comments

Comments
 (0)