diff --git a/generate_map_timelapse.py b/generate_map_timelapse.py index 28d5890..38b87e8 100644 --- a/generate_map_timelapse.py +++ b/generate_map_timelapse.py @@ -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")