Updating GPS Date/Time in an Image

Started by deathbymonkeys, August 30, 2023, 04:58:46 PM

Previous topic - Next topic

deathbymonkeys

All

I am looking to update the GPS Date/TIME as it is zeros. I followed the
command -GPSDateTime="2023:08:16 04:53:482" .\230816_202939246.jpg_original
but the values do not seem to change. What am I missing?

File Size                      : 9.6 MB
File Modification Date/Time    : 2023:08:25 10:28:22-05:00
File Access Date/Time          : 2023:08:30 15:42:47-05:00
File Creation Date/Time        : 2023:08:30 15:35:35-05:00
File Permissions                : -rw-rw-rw-
File Type                      : JPEG
File Type Extension            : jpg
MIME Type                      : image/jpeg
JFIF Version                    : 1.01
Resolution Unit                : inches
X Resolution                    : 72
Y Resolution                    : 72
Comment                        : Intel(R) IPP JPEG encoder [7.0.1058] - Nov 26 2011;
Exif Byte Order                : Big-endian (Motorola, MM)
Make                            : FLIR Systems Inc.
Camera Model Name              : Ladybug
Software                        : Ladybug SDK
Exif Version                    : 0220
GPS Version ID                  : 2.2.0.0
GPS Latitude Ref                : North
GPS Longitude Ref              : West
GPS Altitude Ref                : Above Sea Level
GPS Time Stamp                  : 00:00:00
GPS Measure Mode                : 3-Dimensional Measurement
GPS Speed Ref                  : km/h
GPS Speed                      : 0
GPS Img Direction Ref          : True North
GPS Img Direction              : 160.9090909
GPS Date Stamp                  : 0000:00:00
Image Width                    : 8000
Image Height                    : 4000
Encoding Process                : Baseline DCT, Huffman coding
Bits Per Sample                : 8
Color Components                : 3
Y Cb Cr Sub Sampling            : YCbCr4:2:0 (2 2)
Image Size                      : 8000x4000
Megapixels                      : 32.0
GPS Altitude                    : 165.1 m Above Sea Level
GPS Date/Time                  [b]: 0000:00:00 00:00:00Z[/b]
GPS Latitude                    : 34 deg 43' 40.32" N
GPS Longitude                  : 86 deg 35' 6.88" W
GPS Position                    : 34 deg 43' 40.32" N, 86 deg 35' 6.88" W

StarGeek

This is FAQ #3.  If you run the command listed there, you will see something like this (note I used a variation to show only the date/time tags)
C:\>exiftool -time:all --system:all -G1 -a -s y:\!temp\Test4.jpg
[GPS]          GPSTimeStamp                    : 00:00:00
[GPS]          GPSDateStamp                    : 0000:00:00
[XMP-exif]      GPSDateTime                    : 2023:08:16 04:53:48
[Composite]    GPSDateTime                    : 0000:00:00 00:00:00Z

Because the command in FAQ #3 includes the -a (-duplicates) option, you can now see that there are two GPSDateTime tags.  The one you wrote, XMP-exif:GPSDateTime, and the Composite one.  Composite tags are tags exiftool creates on the fly based upon other tags in the file.  In this case, Composite:GPSDateTime is created specifically from the GPSDateStamp and GPSTimeStamp.  Additionally, these two tags are the GPS tags that are usually given priority by most programs.

The command you actually want to run would be something like this (I'm assuming you meant Z at the end rather than 2)
exiftool -GPSDateStamp="2023:08:16 04:53:48Z" -GPSTimeStamp="2023:08:16 04:53:48Z" file.jpg
or you can use a wildcard to shorten it even further.  On Windows command you would use
exiftool -GPS*Stamp="2023:08:16 04:53:48Z" file.jpg
And on Mac/Linux, you would have to use this, as the wildcard has a special meaning in those systems
exiftool '-GPS*Stamp=2023:08:16 04:53:48Z' file.jpg




* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).