Created
July 29, 2012 02:31
-
-
Save iandexter/3195809 to your computer and use it in GitHub Desktop.
Add EXIF timestamps to photos <http://blog.iandexter.net/2012/07/add-exif-timestamps-to-photos.html>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for img in IMG*.jpg; do | |
fn=$(basename ${img} .jpg) | |
convert ${fn}.jpg ${fn}.exif | |
tstamp=$(strings ${fn}.exif | grep -E "^[0-9].*\:.*") | |
convert ${fn}.jpg -fill red -gravity South -pointsize 72 -annotate +0+5 "${tstamp}" annotated_${fn}.jpg | |
rm -f ${fn}.exif | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment