Add EXIF timestamps to photos
My car got sideswiped yesterday. Worst, the driver neither had insurance nor a license. We had to go through the hassle of filing a report with the police, complete with photo evidence of the accident. I only had my phone with me, which unfortunately isn't very feature rich (it's an old Android phone flashed with CM7, but I digress...), so there wasn't any timestamp on the photos. ImageMagick to the rescue! ImageMagick can extract basic EXIF data from images, as well as annotate them on the fly. I used the following script: 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 So it went from this: to this: Ugh! That scratch would have to wait.