ExifTool Forum

ExifTool => Newbies => Topic started by: Fulco on November 09, 2015, 04:22:27 PM

Title: Print format
Post by: Fulco on November 09, 2015, 04:22:27 PM
To print xmp and composite latitude and longitude in one line the -p STR option can be used, but it will ignore other format options. Is it possible to align tag group, latitude and longitude in the print output below?


MacBook-Air-van-Fulco:~ Fulco$ exiftool -a -G1 -s -FileName -Make -Model -Subject -Keywords -c "%+.6f" -GPSCoordinates -GPSPosition -XMP:GPSLatitude -Composite:GPSLatitude -XMP:GPSLongitude -Composite:GPSLongitude /Users/Fulco/Pictures/20120902103830.mov
[System]        FileName                        : 20120902103830.mov
[QuickTime]     Make                            : SONY
[XMP-tiff]      Make                            : SONY
[QuickTime]     Model                           : DSC-HX5V
[XMP-tiff]      Model                           : DSC-HX5V
[XMP-dc]        Subject                         : Zuid-Afrika, Kruger National Park, Vogel, Southern Ground Hornbill, Zuidelijke hoornraaf, MapEF
[QuickTime]     Keywords                        : Zuid-Afrika, Kruger National Park, Vogel, Southern Ground Hornbill, Zuidelijke hoornraaf, MapEF
[QuickTime]     GPSCoordinates                  : -25.062925, +31.895002
[Composite]     GPSPosition                     : -25.062925, +31.895002
[XMP-exif]      GPSLatitude                     : -25.062925
[Composite]     GPSLatitude                     : -25.062925
[XMP-exif]      GPSLongitude                    : +31.895002
[Composite]     GPSLongitude                    : +31.895002


Thanks in advance.
Title: Re: Print format
Post by: Phil Harvey on November 10, 2015, 07:25:41 AM
I don't know exactly what you are talking about, but you may use arbitrary formatting options in the -p output with the advanced formatting feature.  Alternatively you may apply any formatting you want to the regular output by creating a user-defined Composite tag (https://exiftool.org/config.html).

- Phil