Automatic sorting of photos in folders
Photos from any cheap digital camera come in one big folder, including all the images you have made. If you want your photos in separate folders which indicate the capture date, you probably will need this script.
The script “imagefolder.py” scans all JPGs and TIFs in its directory for their EXIF metadata. If a capture date is present, the photo will be moved in a subfolder in the format YYMMDD*. If the folder doesn’t exist, the folder will be created.
If no EXIF is present, the file attributes will be used. This is only a fallback solution and is not guaranteed to work correctly.
You’ll need:
Python 2.6 or greater
Exifpy (put it in the Python folder)
imagefolder.py (put it in the image folder)
Mirror
Currently my script is Windows only (uses creation date and Windows file system commands), but could be adapted to MacOS or Unix fairly quickly.
* If you want to change your folder format, search for strftime in the script and adapt the following string according to the python time guidelines.