[Originally posted by jt2930 on 2009-12-06 17:26:42-08]
I am trying to extract the time and the GPS coordinates from a jpg file. I want the date with easy-to-read formatting but the GPS coordinates as floats. I also want to use a file to define the formatting (by using -p)
I want
07:20
37.242388
-112.8744
My format file, called tmp.fmt, is
$datetimeoriginal
$gpslatitude
$gpslongitude
If I use
exiftool -d '%I:%M' -gpslongitude# -gpslatitude# -p tmp.fmt a.jpg
I get
07:20
37 deg 14' 32.60" N
112 deg 52' 27.84" W
I was hoping that the -gpslongitude# would suppress the PrintConv for the gpslongitude tag. It does not seem to do this if use the -p option and a format file.
Any suggestions for how I might get exiftool with a format file to give me the output I need?
Thanks.
[Originally posted by exiftool on 2009-12-07 11:19:34-08]I think you want this tmp.fmt file:
$datetimeoriginal
$gpslatitude#
$gpslongitude#
- Phil
[Originally posted by jt2930 on 2009-12-08 01:03:45-08]
Yes, that worked - Thanks!
John