|
|
@ -20,6 +20,7 @@ Create a kml for a folder of photos, named 'image_folder'.
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
import os
|
|
|
|
import os
|
|
|
|
|
|
|
|
import sys
|
|
|
|
import argparse
|
|
|
|
import argparse
|
|
|
|
from PIL import Image
|
|
|
|
from PIL import Image
|
|
|
|
from PIL.ExifTags import TAGS, GPSTAGS
|
|
|
|
from PIL.ExifTags import TAGS, GPSTAGS
|
|
|
@ -138,6 +139,12 @@ def main():
|
|
|
|
metavar='IMAGE_FOLDER',
|
|
|
|
metavar='IMAGE_FOLDER',
|
|
|
|
help='name of input folder',
|
|
|
|
help='name of input folder',
|
|
|
|
default=None)
|
|
|
|
default=None)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Print usage if no arguments are provided
|
|
|
|
|
|
|
|
if len(sys.argv) == 1:
|
|
|
|
|
|
|
|
parser.print_help(sys.stderr)
|
|
|
|
|
|
|
|
sys.exit(1)
|
|
|
|
|
|
|
|
|
|
|
|
args = parser.parse_args()
|
|
|
|
args = parser.parse_args()
|
|
|
|
|
|
|
|
|
|
|
|
# Get files in image directory
|
|
|
|
# Get files in image directory
|
|
|
|