Monday, January 4, 2010

Rename images to creation date

Rename all images in directory 'DIR' to names like '2009-12-27_1058-2.jpg', with individual file names derived from the value of the CreateDate (plus a copy number with a leading '-' if a file with the same name already exists), and with the same extension as the original image.


$exiftool -d "%Y%m%d_%H%M%%-c.%%e" "-filename<CreateDate" DIR


Reference: Copy/Paste from here.