開放街圖標誌 OpenStreetMap 開放街圖

Re-timing images without GPS data

於 2014年一月 6日 由 mycae-gmxEnglish發表。

I had the problem whereby images from my camera did not write the time in the EXIF data. This means I can’t geo-correlate my tracks with my camera data.

Thanks to exiv2, and some crappy bash scripting, something like this works for setting the time from the timestamp (which is fine, as long as the camera time is OK). This is very budget, but it works well enough.

 #!/bin/bash
 
 #Set the exif timestamp using the file creation date
 for i in *jpg
 do
 	THISDATE=`ls -l --time-style="+%Y:%m:%d %H:%M:%S" $i | awk '{print $6 " "$7}'`
 	exiv2 -M"set Exif.Photo.DateTimeOriginal ${THISDATE}" $i
 done
電子郵件圖示 藍天圖示 Facebook 圖示 LinkedIn 圖示 乳齒象圖示 Telegram 圖示 X 圖示

討論

登入 來留下評論