"Export all visible elements" to kmz file doesn't show big pictures

berkley shared this problem 3 years ago
Not processed

Problem is based upon this german thread from Forum:

http://forum.locusmap.eu/index.php?topic=3769.0


When exporting a track along with some geotagged photos from POIs, the resulting kmz file contains the original images. But when the file gets opened on Google Earth PC, there are only thumbnails of the pictures.


I see 2 options to solve that issue, both based upon user choice:

  1. Only export thumbnails

    Has the advantage that file size doesn't grow too big.

  2. Export original pictures

    File size will grow. But then it should be possible to open the pictures within the description tag on Google Earth PC.

I think it's a matter of generating an iFrame in the description of the kmz, so that the picture can open itself in the same window.


Cheers berkley

Comments (25)

photo
0

Hello,


this is a long time known problem and I`m still unable to correctly solve it


I did a searching and found many topics now with similar problem, like this http://productforums.google.com/forum... , but seems that non is useful.


If someone should help with some working sample (image included in KMZ and clickable), I should fix it in minute.


You may simply look into these KML files. There is tag with link to image, but this link do not work and I have absolutely no idea why ...

photo
0

Hi menion,


i hope i understand it right ;-))


With this example is it posible to display and klick the pictures in locus and GE


https://www.dropbox.com/s/m373tc61a5x...


is this was you search for?


The german discription i have built it


http://forum.locusmap.eu/viewtopic.ph...

photo
0

Hi,


this unfortunately do not work as expected. Because you click on point in Google Earth, it display screen with photo and coordinates, but it`s not possible to click on photo itself


Imagine you display just a small photo and want to click on it to display bigger one. You may simply attach a photo to any point in locus and export it to KML/KMZ and you`re see what we mean

photo
1

When you check content of exported file on your PC, you may see all pictures in this KMZ file. Did you tried it?


So Locus already export 2. - original pictures. In description you see when you tap on photo is visible thumbnail generated from original image in html.


Problem here is, that I still cannot find correct way, how to make click on image in description working. This is from my point of view major problem.

photo
1

As gynta menitoned on forum, same problem is already reported here right http://help.locusmap.eu/responses/exporting_kml_or_kmz_with_pictures_solved_not_for_us ? So I should merge them if you agree.

photo
4

You can also mark both topics as solved, if you agree. I think you get the idea... ;)


Original exported File from Locusi: http://goo.gl/IzhEA6

"Fixed" File with additional "flyto" links: http://goo.gl/UYTj23


You could also do some magic with this:

http://eightmedia.github.io/hammer.js/

photo
3

hey, it's amazing solution!!!

photo
4

Menion wrote:

hey, it's amazing solution!!!
You're welcome :-)

photo
1

bumper...


didn't make it to latest test version?

photo
2

no sorry. You solution is very nice and working, but it require quite a lot of time. Screen with export details (html description), is really old and needs to rewrite, so together with your solution, it will take a while till we find a time on it.


When this task will be solved, i'm sure you will be notified because this topic change it's status

photo
1

Wooow ! Great ! Please please please when you'll have time ! :-)

photo
1

Hi again,


What is the solution? The links with the answers are dead.


Thanks,


Diego

photo
2

Menion wrote:

...When this task will be solved, i'm sure you will be notified because this topic change it's status

photo
1

Hi,

Is there any development recently in this direction, to enlarge photos exported in kmz, when viewed in google earth ?

Since I export all my tracks as kmz-s, what I have been doing is manually enlarging the photos by opening kmz-doc.kml and replacing the existing lines, i.e.:


<![CDATA[<font color="black"><table width="100%"><tr><td width="100%" align="center"><a href="files/point_1_1454750559836.jpg" target="_blank"><img src="files/point_1_1454750559836.jpg" width="60px" align="right" style="border: 3px white solid;"></a><br /><br /><font color="black"><table width="100%"><tr><td><table width="100%"><tr><td align="left" valign="center"><small><b>Length</b></small></td><td align="center" valign="center">5.1 km</td></tr>


with:


<![CDATA[<table border="1"><tr><td><img width="1400" src="files/point_1_1454750559836.jpg" /></td></tr></table>]]>


However, it would be nice if that (or something similar or an export option) is made in Locus.

photo
1

hehe nice push Svjetlana

@menion: fast and simple change: cut this string:


  1. ......<a href="files/xxx" target="_blank"><img src="files/xxx" width="60px"
  2. align="right" style="border: 3px white solid;"></a>.......

to:


  1. .......<img src="files/xxx">......

photo
1

Hi Gynta,


That is also nice trick. I would only add to that - "width" of the image. If the width is not specified, the image, when opened in google earth, is as large as the camera took the shot. In my case, more than 4000 pixels. That size can't fit on a today's standard desktop monitors.


I know, the matter/problem is a kind of personal viewpoint, depending on the camera's resolution, size of the screen on which the g.earth/photos are viewed, etc.


Perhaps, it would be possible to define an option in Locus/settings/export type - kml/kmz the width of the exported images in pixels.


Although, as I mentioned before, I export all my tracks as kmz-s, to be able to look at photos in g.earth, I think we shouldn't be harassing Menion with every possible gimmick, unless he has some spare time - which I really doubt.


Just would like to mention at the end, Locus is a fantastic application, a perfect example of what can be achieved by enthusiasm and hard work of a human/team. Before I discovered Locus, I had been dreaming for years of an application/device by which I could be mapping/orienting/tracking my off/on-road journeys. Locus changed my (off/on-road) life. No money can repay that.


Thanks and best regards.

photo
1

try in config.cfg

# preset width of photos when exporting waypoints to KML format (default: 60)

# - width in pixels

export_photo_width=1000

photo
1

Hi Gynta,


Excellent, that is the solution. No more manual adjustments of kmz/kml-s for me.


Eventually, sometimes in the future, an option to define the width of the exported images could be added in Locus/settings/export type - kml/kmz. That would be for the sake of other Locus users and in order not to dig into config.cfg.


Nevertheless, even without the mentioned option, I am and will be happy with your solution.


Thanks and best regards.

photo
1

Hi. I'd like to do this in my config file but not sure how the syntax in there works. Are you saying I can open with Notepad and just copy those three lines in at the bottom, then save and all will be good? So the # must indicate means a comment? (When I look at the #'s in the current cfg file with Notepad, it's unclear how the #'s are being used.) Thanks.

photo
1

There is nothing to copy or add in the config file.Search for the word "export_photo_width"

and set the value to (eg) 1000

Default should be "export_photo_width=60"

Just change it to "export_photo_width=1000"

photo
1

Hello All,


I tried this b/c whenever I exported KML file and open in Google Earth Pro desktop, I only see Tiny Picture point.

I set the value to 1000 in config.cfg as gynta mentioned BUT as you can see from attached file Same tiny picture point.

And also when I click on the point, why there is no picture showing inside the description box, is it normal?


What am I missing here, need some help and thank you...

photo
1

Hello Sean

in export dialog view "show more"

next check "insert formatted description"

export it again !

now your picture will be displayed inside your screenshot EX02

Wolfgang

photo
1

Hello Wolfgang,


Great and thank you so much...

And I guess I misunderstood, changing the value to 1000 in the config.cfg file is for the "picture size" inside the description box (Screenshot Ex02) and Nothing to do with the Icon Size(Screenshot EX01), Right???


And again thank you so much.....

photo
1

And I guess I misunderstood, changing the value to 1000 in the

config.cfg file is for the "picture size" inside the description box

(Screenshot Ex02) and Nothing to do with the Icon Size(Screenshot EX01),

Right???

exactly ;-))

photo
1

Thank you so much~~~!