1 2 3 4 5 6 7 8 9 10
|
TITLE='Geotag a file from a specified latitude/longitude (dms forms)'
PRECOMMAND='cat "$STAGINGDIR/point1-1.jpg" >"$LOGDIR/test.jpg"'
# A UTF-8 locale isn't strictly needed currently, but it's highly likely to be
# present when the UTF-8 degrees symbol is being used, as it is here.
# As can be seen, it's tricky to pass a single quote character into the test
# suite.
# Run in C locale to avoid errors when comparing numbers in output
COMMAND='env LC_CTYPE=UTF-8 LC_NUMERIC=C $PROGRAM -z+1 -l -34d56m08.9s,-90°0'"\\'"'59.11111\" "$LOGDIR/test.jpg" > "$OUTFILE" 2>&1 && exiv2 -pv pr "$LOGDIR/test.jpg" >> "$OUTFILE" 2>&1'
POSTCOMMAND='rm -f "$LOGDIR/test.jpg"'
RESULTCODE=0
|