ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: janmartin on August 10, 2010, 11:05:29 AM

Title: copy EXIF GPS IFD group?
Post by: janmartin on August 10, 2010, 11:05:29 AM
Hi all,

I need to copy the
EXIF GPS IFD
group, and all tags in it
from a .jpg4 file to a .dng file that does not have the group yet.

Command line ideas please?

Thanks,
Jan
Title: Re: copy EXIF GPS IFD group?
Post by: Phil Harvey on August 10, 2010, 12:01:23 PM
Try this:

exiftool -tagsfromfile SRC.jpg4 -gps:all DST.dng

- Phil
Title: Re: copy EXIF GPS IFD group?
Post by: mvadu on November 10, 2010, 10:30:30 PM
Phil, I am looking for same information.
I have a  Photoshop script (http://ps-scripting-experiments.blogspot.com/2010/07/save-jpeg-images-in-photoshop-without.html (http://ps-scripting-experiments.blogspot.com/2010/07/save-jpeg-images-in-photoshop-without.html)) to copy makernotes section from original file after Photoshop save operation. Now I want to copy GPS information section as well.

I tried simple read

exiftool.exe -gps:all t1i_Sample.JPG
GPS Version ID                  : 2.2.0.0
GPS Altitude Ref                : Above Sea Level
GPS Time Stamp                  : 22:25:34
GPS Satellites                  : 0
GPS Map Datum                   : WGS-84
GPS Date Stamp                  : 2010:07:03


But
exiftool.exe -gps:all -a t1i_Sample.JPG
GPS Version ID                  : 2.2.0.0
GPS Latitude Ref                : North
GPS Latitude                    : 41 deg 54' 49.33"
GPS Longitude Ref               : West
GPS Longitude                   : 69 deg 58' 18.89"
GPS Altitude Ref                : Above Sea Level
GPS Altitude                    : 2.204 m
GPS Time Stamp                  : 22:25:34
GPS Satellites                  : 0
GPS Map Datum                   : WGS-84
GPS Date Stamp                  : 2010:07:03


Notice the first command missing actual coordinates. Does it still copy all tags (in the output of -a option) if
-tagsfromfile SRC.jpg -gps:al is used?
Title: Re: copy EXIF GPS IFD group?
Post by: Phil Harvey on November 11, 2010, 07:12:59 AM
Quote from: mvadu on November 10, 2010, 10:30:30 PM
Does it still copy all tags (in the output of -a option)?

This is a very good point, and shows an inconsistency in the exiftool interface.

Yes, the -a is effectively assumed for all copy operations.

I should document this.

- Phil
Title: Re: copy EXIF GPS IFD group?
Post by: mvadu on November 11, 2010, 07:36:12 AM
Thank you Phil. (as always).