How to embed local image in kml/kmz

Author: pwb999Created Jun 24, 2022Updated Sep 30, 2026
LabelsBookmarks and Tracks

I am trying to embed some image files into a kml file.

I have followed the KML Handbook instructions (see Josie Wernecke' KML Handbook) and this suggests having a doc.kml and any images in a single folder which you then zip to the KMZ format. The image is referenced using the simple tag
Screenshot 2022-06-24 at 17 59 27

However despite this single image being in the same kmz folder it does not render.

I then tried encoding the image with base64 at https://www.base64-image.de/. This very very long string did render ok in OM. But for some reason when I inserted more than 4 such encoded images the KML refused to open correctly in OM Android. The code I used was in this format Screenshot 2022-06-24 at 17 56 27

Is there a particular OM Syntax I need to use to embed images as I really want to create an offline KML/KMZ with no external internet links.

My use is to include images relating to Neolithic Stone Circles that are quite common in Cumbria, England and great to visit on hike routes.

Thanks for any help Peter B.