saving contents of display.map as an image

saving contents of display.map as an image

We have the locations of a number of trial plots. We would like to be able to adjust the locations, as sometimes the location identifies other than the centre of the plot.

Display.map displays a selected area on an interactive map. 

The code segment:

image_map = display_map ( (lon_st, lon_fn), (lat_st, lat_fn) )

fle_name_fm = f'{country}_FOLIUM_MAP_plot_0x.html'

image_map.save ( fle_name_fm )


writes the displayed map as an HTML file.

We would also like to be able to superimpose the approximate plot boundary, say by exporting the image, and then importing it into a drawing program.

Question: How can we capture the contents of image_map, and write the image to a PNG or JPG file?