#------------------------------------------------------------------------------ # File: kml.fmt # # Description: Example ExifTool print format file for generating a # Google Earth KML file from a collection of geotagged images # # Usage: exiftool -p kml.fmt -r DIR [...] > out.kml # # Requires: ExifTool version 10.41 or later # # Revisions: 2010/02/05 - P. Harvey created # 2013/02/05 - PH Fixed camera icon to work with new Google Earth # 2017/02/02 - PH Organize into folders based on file directory # 2018/01/04 - PH Added IF to be sure position exists # 2020/01/11 - F. Kotov Limited image preview size to 500px # # Notes: 1) Input files must contain GPSLatitude and GPSLongitude. # 2) Add the -ee3 option to extract the full track from video files. # 3) For Google Earth to be able to find the images, the input # images must be specified using relative paths, and "out.kml" # must stay in the same directory as where the command was run. # 4) Google Earth is picky about the case of the image file extension, # and may not be able to display the image if an upper-case # extension is used. # 5) The -fileOrder option may be used to control the order of the # generated placemarks when processing multiple files. # 6) The "0" in the coordinates line may be changed to "$gpsaltitude#" # and the altitudeMode may be changed to "absolute" to store # altitude information if it exists in the track log. #------------------------------------------------------------------------------ #[HEAD] #[HEAD] #[HEAD] #[HEAD] My Photos #[HEAD] 1 #[HEAD] #[SECT] #[SECT] $main:directory #[SECT] 0 #[IF] $gpslatitude $gpslongitude #[BODY] #[BODY] ]]> #[BODY] #[BODY] #[BODY] $filename #[BODY] #Photo #[BODY] #[BODY] clampedToGround #[BODY] $gpslongitude#,$gpslatitude#,0 #[BODY] #[BODY] #[ENDS] #[TAIL] #[TAIL]