ExifTool Forum

ExifTool => Newbies => Topic started by: ugoldrake on May 24, 2023, 07:08:11 AM

Title: Insert Exif Data into image file
Post by: ugoldrake on May 24, 2023, 07:08:11 AM
Hello everybody I'm new in this forum.
I've found some 3Ds that could help me, but the code I find doesn't work.
I've to insert gpsLat and gpsLon into my image file.jpg
I use VBA in Access 2010.

I prepare the command line:
"ExifTool -GPSLatitude=" & latt & " -GPSLatitudeRef=N -GPSLongitude=" & lonn & " -GPSLongitudeRef=W " & """" & Img_001.jpg & """"where latt and lonn are the values of the lat and lon I want to insert.

Than I use it:
    shell.Run exifCommand, 1, False
I tried also -GPSLatitude*, uselessly...

When I search Lat and Lon in the properties of the image file I don't find them: WHY?
Where am I wrong?
Title: Re: Insert Exif Data into image file
Post by: Phil Harvey on May 24, 2023, 10:24:11 AM
1. Try running the command from the command line to see if it is a problem with your shell.Run syntax.

2. Use ExifTool from the command line to read back the metadata to verify it was inserted.

- Phil
Title: Re: Insert Exif Data into image file
Post by: StarGeek on May 24, 2023, 01:40:06 PM
Also, you can simplify things by letting exiftool figure out the N/S/E/W references.  Just pass your latt/lonn to the reference tags.

exiftool -GPSLatitude=" & latt & " -GPSLatitudeRef=" & latt & " -GPSLongitude=" & lonn & " -GPSLongitudeRef=" & lonn