copy EXIF GPS IFD group?

Started by janmartin, August 10, 2010, 11:05:29 AM

Previous topic - Next topic

janmartin

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

Phil Harvey

Try this:

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

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

mvadu

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) 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?

Phil Harvey

#3
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
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

mvadu