Skip to content

Instantly share code, notes, and snippets.

@edc
Created February 18, 2011 04:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edc/833233 to your computer and use it in GitHub Desktop.
Save edc/833233 to your computer and use it in GitHub Desktop.
Add time stamp on photos for printing
#!/bin/bash
echo Processing $1
SIZE=`convert -identify -ping $1 /dev/null | cut -d ' ' -f 3`
X=`echo $SIZE | cut -d 'x' -f 1`
Y=`echo $SIZE | cut -d 'x' -f 2`
X=`expr $X - 1500`
Y=`expr $Y - 100`
mv $1 _$1
set -o verbose
convert _$1 -font ~/Downloads/digital_7/digital-7-mono.ttf -pointsize 300 -fill red -annotate +$X+$Y %[exif:DateTimeOriginal] $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment