Created
February 18, 2011 04:02
-
-
Save edc/833233 to your computer and use it in GitHub Desktop.
Add time stamp on photos for printing
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
#!/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