 Rename a picture taken with the Digital Camera File specification to use a more Unix-friendly name.
Each given file is renamed. If the existing name begins or ends in four digits (preference given to ending), those four digits will be preserved in the new name as "seq"; otherwise "seqn" will be set to ensure a unique filename, starting at 0001 or one more than the largest existing sequence number. The remainder of the name will be created as follows:
Pyyyy.mm.dd-hh.mm.ss-seqn.jpg
Original script from "Geoff's Digicam Tools for Linux" (http://lasr.cs.ucla.edu/geoff/digicam/) Modified by me (Bjoern Olausson) to work with exiftool instead of Metacam |