Skip to content

Instantly share code, notes, and snippets.

@iandexter
Created July 29, 2012 02:31
Show Gist options
  • Save iandexter/3195809 to your computer and use it in GitHub Desktop.
Save iandexter/3195809 to your computer and use it in GitHub Desktop.
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