Insert Exif Data into image file

Started by ugoldrake, May 24, 2023, 07:08:11 AM

Previous topic - Next topic

ugoldrake

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?

Phil Harvey

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
...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 ($).

StarGeek

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
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype