You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
792 B
Bash
26 lines
792 B
Bash
#!/usr/bin/env bash
|
|
# Test driver for geotag
|
|
|
|
source ./functions.source
|
|
|
|
( jpg=FurnaceCreekInn.jpg
|
|
gpx=FurnaceCreekInn.gpx
|
|
copyTestFiles $jpg $gpx
|
|
|
|
echo --- show GPSInfo tags ---
|
|
runTest exiv2 -pa --grep GPSInfo $jpg
|
|
tags=$(runTest exiv2 -Pk --grep GPSInfo $jpg | tr -d '\r') # MSVC puts out cr-lf lines
|
|
echo --- deleting the GPSInfo tags
|
|
for tag in $tags; do runTest exiv2 -M"del $tag" $jpg; done
|
|
runTest exiv2 -pa --grep GPS $jpg
|
|
echo --- run geotag ---
|
|
runTest geotag -ascii -tz -8:00 $jpg $gpx | cut -d' ' -f 2-
|
|
echo --- show GPSInfo tags ---
|
|
runTest exiv2 -pa --grep GPSInfo $jpg
|
|
) > $results 2>&1
|
|
|
|
reportTest
|
|
|
|
# That's all Folks!
|
|
##
|