Topic: [SOLVED] batch exif geo tagging images
any idea of tools/approaches to this? i have a photo set (my wedding photos) that i'd like to tag with the longitude and latitude, but i have no idea where to start. tia
edit:
ok, i just buckled down and did the bloody research. it's not super hard, and i was able to do a pretty basic modification to a tutorial on LXF... here's the result for posterity.
#!/bin/bash
##############################
LAT="45.5486996"
LONG="-122.1900352"
for image in $(cat images.txt)
do
exiftool -P -c "%.6f degrees" \
-GPSLatitude=$LAT \
-GPSLongitude=$LONG \
-GPSAltitude=1 \
-GPSLatitudeRef=N \
-GPSLongitudeRef=W \
$image
doneand the result...
[nathan@loki wedding]$ exiftool wedding8745.jpg
ExifTool Version Number : 8.65
File Name : wedding8745.jpg
Directory : .
File Size : 442 kB
File Modification Date/Time : 2011:12:29 21:58:47-08:00
File Permissions : rwxrwxr-x
File Type : JPEG
MIME Type : image/jpeg
Exif Byte Order : Little-endian (Intel, II)
Make : Canon
Camera Model Name : Canon EOS 5D Mark II
X Resolution : 120
Y Resolution : 120
Resolution Unit : inches
Software : Adobe Photoshop Lightroom 3.5 (Macintosh)
Modify Date : 2011:08:26 12:01:09
Exposure Time : 1/40
F Number : 2.8
Exposure Program : Manual
ISO : 2500
Exif Version : 0230
Date/Time Original : 2011:08:26 12:01:09
Create Date : 2011:08:26 12:01:09
Shutter Speed Value : 1/40
Aperture Value : 2.8
Exposure Compensation : 0
Max Aperture Value : 2.8
Subject Distance : 1.22 m
Metering Mode : Multi-segment
Flash : On, Fired
Focal Length : 28.0 mm
Sub Sec Time Original : 33
Sub Sec Time Digitized : 33
Focal Plane X Resolution : 3849.211789
Focal Plane Y Resolution : 3908.141962
Focal Plane Resolution Unit : inches
Custom Rendered : Normal
Exposure Mode : Manual
White Balance : Auto
Scene Capture Type : Standard
Serial Number : 2021300818
Lens Info : 24-70mm f/?
Lens Model : EF24-70mm f/2.8L USM
GPS Version ID : 2.3.0.0
GPS Latitude Ref : North
GPS Longitude Ref : West
GPS Altitude : 1 m
Compression : JPEG (old-style)
Thumbnail Offset : 984
Thumbnail Length : 15315
XMP Toolkit : XMP Core 4.4.0-Exiv2
Date/Time Digitized : 2011:08:26 19:01:09Z
Displayed Units X : inches
Displayed Units Y : inches
Current IPTC Digest : ed0a8d2603951f95fc04cb6e03531757
Coded Character Set : UTF8
Application Record Version : 4
Date Created : 2011:08:26
Time Created : 21:17:53+00:00
Digital Creation Date : 2011:08:26
Digital Creation Time : 21:17:53+00:00
Photoshop Thumbnail : (Binary data 15315 bytes, use -b option to extract)
IPTC Digest : 913874deb470b7514b8f28240d0d5048
Image Width : 2272
Image Height : 1515
Encoding Process : Baseline DCT, Huffman coding
Bits Per Sample : 8
Color Components : 3
Y Cb Cr Sub Sampling : YCbCr4:2:0 (2 2)
Aperture : 2.8
Date/Time Created : 2011:08:26 21:17:53+00:00
Digital Creation Date/Time : 2011:08:26 21:17:53+00:00
GPS Latitude : 45 deg 32' 55.32" N
GPS Longitude : 122 deg 11' 24.13" W
GPS Position : 45 deg 32' 55.32" N, 122 deg 11' 24.13" W
Image Size : 2272x1515
Scale Factor To 35 mm Equivalent: 2.4
Shutter Speed : 1/40
Create Date : 2011:08:26 12:01:09.33
Date/Time Original : 2011:08:26 12:01:09.33
Thumbnail Image : (Binary data 15315 bytes, use -b option to extract)
Circle Of Confusion : 0.012 mm
Depth Of Field : 0.13 m (1.16 - 1.29)
Field Of View : 29.8 deg
Focal Length : 28.0 mm (35 mm equivalent: 67.5 mm)
Hyperfocal Distance : 22.48 m
Light Value : 3.6Last edited by nathwill (2011-12-30 07:13:53)