The script will take a directory tree containing jpg images, read the EXIF Time/Date stamp from each image, then sort the images into a directory.
It will either make a single numbered set of images (0001.jpg, 0002.jpg, 0003.jpg, etc.) in the destination directory, or will create a sub directory in the destination directory for each date (YYYY-MM-DD) and then create a numbered set in each dated directory.
If using sub directories, files that do not have an EXIF Time/Date stamp will be sorted into the 9999-99-99 sub directory.
If not using sub directories, files that do not have an EXIF Time/Date stamp will be put at the end of the file set.
Version 2.0 uploaded 2011-03-01.
Version 2.0 now checks for files named .jpg and .jpeg to process.
Version 2.0 will properly handle files with the “$” character in the name.
picsort.pl is copyright Mark D. Montgomery II and is provided under the GPL 3 or later license.
This script is provided as is with no warranty implied or expressed, use at your own risk.
Note: This script WILL OVERWRITE DESTINATION FILES without asking, so be sure to specify your destination directory correctly.
Program Syntax: picsort.pl [start directory] [destination directory] [use sub dirs (Y/N)]
Example Syntax: picsort.pl MyPics SortedPics Y