Your friendly GPS tagging friend is here again. I was locating a day's shoot by matching latitude and longitude coordinates of my pictures with Google Maps and created a batch file to stuff those coordinates into the corresponding JPG. A bunch of JPGs went through fine and then all after the following would barf. I ran this JPG alone with the -v3 flag to see if there was any clue as to whether the problems were indeed with the JPGs. As to exiftool itself, I am using version 11.52. The camera is a Sony Alpha 7.
Quoteexiftool.exe -v3 -GPSLatitude=32.0610491 -GPSLongitude=34.7630275 -GPSLatitudeRef=n -GPSLongitudeRef=e DSC07392.JPG
Writing MIE-GPS:GPSLatitude
Writing XMP-drone-dji:GPSLatitude if tag exists
Writing XMP-exif:GPSLatitude if tag exists
Writing GPS:GPSLatitude
Writing MIE-GPS:GPSLongitude
Writing XMP-drone-dji:GPSLongitude if tag exists
Writing XMP-exif:GPSLongitude if tag exists
Writing GPS:GPSLongitude
Writing GPS:GPSLatitudeRef
Writing GPS:GPSLongitudeRef
======== DSC07392.JPG
Rewriting DSC07392.JPG...
Editing tags in: APP0 APP1 GPS IFD0 JFIF MIE-GPS XMP
Creating tags in: APP1 GPS IFD0 MIE-GPS
JPEG APP1 (48058 bytes):
0000: 45 78 69 66 00 00 49 49 2a 00 08 00 00 00 0c 00 [Exif..II*.......]
0010: 0e 01 02 00 20 00 00 00 9e 00 00 00 0f 01 02 00 [.... ...........]
0020: 05 00 00 00 be 00 00 00 10 01 02 00 07 00 00 00 [................]
0030: c4 00 00 00 12 01 03 00 01 00 00 00 08 00 00 00 [................]
0040: 1a 01 05 00 01 00 00 00 cc 00 00 00 1b 01 05 00 [................]
0050: 01 00 00 00 d4 00 00 00 28 01 03 00 01 00 00 00 [........(.......]
0060: 02 00 00 00 31 01 02 00 0d 00 00 00 dc 00 00 00 [....1...........]
[snip 47946 bytes]
Rewriting IFD0
Rewriting ExifIFD
Rewriting MakerNoteSony
Rewriting ShotInfo
Rewriting Tag9400c
Rewriting Tag9401
Rewriting Tag9402
Rewriting Tag9403
Rewriting Tag9404b
Rewriting Tag9405b
Rewriting Tag9406
Rewriting Tag940c
Rewriting Tag940e
Rewriting Tag2010g
Rewriting Tag9050a
Rewriting InteropIFD
Creating GPS
+ GPS:GPSVersionID = '2 3 0 0' (mandatory)
+ GPS:GPSLatitudeRef = 'N'
+ GPS:GPSLatitude = '32 3 39.7767599999935'
+ GPS:GPSLongitudeRef = 'E'
+ GPS:GPSLongitude = '34 45 46.8989999999991'
Rewriting IFD1
JPEG APP2 (572 bytes):
0000: 4d 50 46 00 49 49 2a 00 08 00 00 00 03 00 00 b0 [MPF.II*.........]
0010: 07 00 04 00 00 00 30 31 30 30 01 b0 04 00 01 00 [......0100......]
0020: 00 00 02 00 00 00 02 b0 07 00 20 00 00 00 32 00 [.......... ...2.]
0030: 00 00 00 00 00 00 00 00 03 a0 56 ef 6f 00 00 00 [..........V.o...]
0040: 00 00 02 00 00 00 02 00 01 40 9c 1d 0b 00 38 42 [.........@....8B]
0050: 6f 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [o...............]
0060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [................]
[snip 460 bytes]
JPEG DQT (130 bytes):
JPEG DHT (416 bytes):
JPEG SOF0:
JPEG SOS
Error = Error writing output file
Error: Error writing output file - DSC07392.JPG
0 image files updated
1 files weren't updated due to errors
Of course, if there's a more robust formulation for GPS coordinate stuffing recommended, would love to hear it.
Much thanks.