bugfix/map-has-no-border #8
|
@ -95,8 +95,6 @@ def draw_map(films_by_country, file_name="vcinema_map.svg"):
|
||||||
worldmap.plot(countries, cmap=["#FF4000"], opacity=opacity, filename=file_name, verbose=False)
|
worldmap.plot(countries, cmap=["#FF4000"], opacity=opacity, filename=file_name, verbose=False)
|
||||||
|
|
||||||
image = pyvips.Image.new_from_file(file_name)
|
image = pyvips.Image.new_from_file(file_name)
|
||||||
|
|
||||||
# Crop image
|
|
||||||
image = image.thumbnail_image(1000, crop=pyvips.Interesting.ALL)
|
image = image.thumbnail_image(1000, crop=pyvips.Interesting.ALL)
|
||||||
|
|
||||||
png_data = image.write_to_buffer(".png")
|
png_data = image.write_to_buffer(".png")
|
||||||
|
|
Loading…
Reference in New Issue