summaryrefslogtreecommitdiff
path: root/annex-photo-add-exif.sh
diff options
context:
space:
mode:
Diffstat (limited to 'annex-photo-add-exif.sh')
-rwxr-xr-xannex-photo-add-exif.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/annex-photo-add-exif.sh b/annex-photo-add-exif.sh
new file mode 100755
index 0000000..b2ff392
--- /dev/null
+++ b/annex-photo-add-exif.sh
@@ -0,0 +1,14 @@
+#!/usr/bin/env bash
+shopt -s extglob
+for f in !(*.xmp) ; do
+ echo $f
+ git annex metadata $f --set exif="$(exiftool -S \
+ -filename \
+ -filetypeextensions \
+ -make \
+ -model \
+ -lensid \
+ -focallength \
+ -fnumber \
+ -iso $f)"
+done