Search code examples
htmlimagegoogle-earthkmz

Google Earth - KMZ - Open embedded Image


I have a KML I wrote inside of a KMZ using relative references to images. The description shows a resized thumbnail perfectly. When I click on the image it used to open inside of GE. I don't know what happened but the image wont open any more.

Inside my kmz I have doc.kml and dir "files" containing my images

I would also like for it to open in the windows photo viewer if possible. Thanks in advance! Here is my code (partial)

<tr><td class="padr">Photo 1:</td><td><a href="files/IMG_0003331.JPG"><img src="files/IMG_0003331.jpg" width="200" height="150"/></a></td></tr>
<tr><td class="padr">Photo 2:</td><td><a href="files/IMG_0004332.JPG"><img src="files/IMG_0004332.jpg" width="200" height="150"/></a></td></tr>
<tr><td class="padr">Photo 3:</td><td><a href="files/IMG_0005333.JPG"><img src="files/IMG_0005333.jpg" width="200" height="150"/></a></td></tr>
<tr><td class="padr">Photo 4:</td><td><a href="files/IMG_0006334.JPG"><img src="files/IMG_0006334.jpg" width="200" height="150"/></a></td></tr>             <tr><td class="padr">Photo 5:</td><td><a href="files/IMG_0007335.JPG"><img src="files/IMG_0007335.jpg" width="200" height="150"/></a></td></tr>
<tr><td class="padr">Photo 6:</td><td><a href="files/IMG_0008336.JPG"><img src="files/IMG_0008336.jpg" width="200" height="150"/></a></td></tr>

Solution

  • Just in case someone comes across this post with the same issue as I, I finally got it working the way I wanted it to.

    <tr><td class="padr">Photo 1:</td><td><a href="../files/IMG_0003331.JPG"><img src="../files/IMG_0003331.jpg" width="200" height="150"/></a></td></tr>
    <tr><td class="padr">Photo 2:</td><td><a href="../files/IMG_0004332.JPG"><img src="../files/IMG_0004332.jpg" width="200" height="150"/></a></td></tr>
    <tr><td class="padr">Photo 3:</td><td><a href="../files/IMG_0005333.JPG"><img src="../files/IMG_0005333.jpg" width="200" height="150"/></a></td></tr>
    

    This shows thumbnail sized preview in the bubble and opens the photo in photo viewer upon click.