I would like to display a fixed png image such as a logo or a legend on the folium map. I use Python to produce an html file and can successfully do this by pointing to the image url or path:
legend_img = 'path_to_legend/img.png'
FloatImage(legend_img, bottom=0, left=86).add_to(folium_map)
Note that right now I have to keep two files together, one html file and one png file. If I move or rename the png file, it will not be displayed on the map. However, I would like the html file not to be dependent on any other file or url, but contain everything within itself. How could I achieve that?