File: xmp2gps.args

package info (click to toggle)
libimage-exiftool-perl 11.16-1%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 24,024 kB
  • sloc: perl: 245,177; xml: 120; makefile: 9
file content (31 lines) | stat: -rw-r--r-- 1,455 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#------------------------------------------------------------------------------
# File:         xmp2gps.args
#
# Description:  Argument file for copying GPS information from XMP to EXIF
#
# Usage:        exiftool -tagsFromFile SRCFILE -@ xmp2gps.args DSTFILE
#
# Requires:     ExifTool version 10.96 or later
#
# Revisions:    2009/01/09 - P. Harvey Created
#               2018/05/07 - PH Handle GPSDestLatitude/LongitudeRef tags
#
# Notes:     1) Most of the GPS tags are copied by the first argument, but
#               the coordinate references and date/time values are stored
#               separately in EXIF, so they must be handled separately.
#               A bit of magic is employed by ExifTool to extract the date
#               and time parts respectively when writing date-only and
#               time-only tags with a date/time value.
#
#            2) These arguments will not delete existing GPS tags which are
#               missing from the XMP.  The GPS tags should be deleted with
#               "-gps:all=" first if required.
#------------------------------------------------------------------------------
-GPS:all < XMP-exif:all
-GPS:GPSLatitudeRef < Composite:GPSLatitudeRef
-GPS:GPSLongitudeRef < Composite:GPSLongitudeRef
-GPS:GPSDestLatitudeRef < Composite:GPSDestLatitudeRef
-GPS:GPSDestLongitudeRef < Composite:GPSDestLongitudeRef
-GPS:GPSDateStamp < XMP-exif:GPSDateTime
-GPS:GPSTimeStamp < XMP-exif:GPSDateTime
# end