optimize gif
This commit is contained in:
parent
8506a36d9c
commit
1bc467ee69
@ -5,6 +5,7 @@ import argparse
|
||||
from collections import OrderedDict
|
||||
import imageio
|
||||
from progress.bar import IncrementalBar
|
||||
from pygifsicle import optimize
|
||||
|
||||
|
||||
def generate_map_timelapse(token_id, token_secret):
|
||||
@ -35,6 +36,10 @@ def generate_map_timelapse(token_id, token_secret):
|
||||
image = imageio.imread(FilmsByCountry.draw_map(running_country_counts, file_name="map-{}.svg".format(date)))
|
||||
writer.append_data(image)
|
||||
|
||||
print("optimizing")
|
||||
|
||||
optimize("test.gif")
|
||||
|
||||
print("done")
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user