CLI to pull photo gps data into a JSON file
Images MUST be JPEG format
The following parameters are customizable:
-
Name
-n
or--name
: This is the name of the file created. The default ismetadata
.
Example:gps2json -n=image_data gps2json --name=new_image_data
-
Input Folder
-i
or--input
: This is the input folder where the images live. The default is the folder of where the command was ran.
Example:gps2json -i=./src/assets/imgs gps2json --input=../imgs/icons
-
Output Folder
-o
or--output
: This is where the JSON file will live. The default is the folder of where the command was ran.
Example:gps2json -o=./src/assets/JSON gps2json --output=../static
Format
-f
or--format
: This is the output file format. The options arejson
andgeojson
. The default isjson
.
Example:gps2json -f=json gps2json --format=geojson