Skip to content

A script to reorganize photo files into year-month-day folders by creation date from EXIF data. Used as a way to standardize the organization of a photo gallery when using many different cameras.

Notifications You must be signed in to change notification settings

oldman-gg/photo_organizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Photo Organizer

GitHub last commit

Overview

Photo Organizer is a Python script designed to automatically organize your photo collection by their creation dates and store them in a logical structure. It reads the EXIF data of your images to determine the date each photo was taken and organizes the photos into folders based on this date. I use this script to better organize my photos I capture with several cameras.

Features

  • Extracts the creation date from the photo's EXIF data.
  • Organizes photos into year/month/day folders based on their creation dates.
  • Falls back to the file's creation date if EXIF data is not available.
  • Logs all actions and errors for easy troubleshooting.

Requirements

  • Python 3.x
  • exifread library for reading EXIF data from images.
  • shutil and os libraries for file and directory operations.
  • datetime library for date and time operations.
  • logging library for logging errors and operations.

Installation

  1. Ensure Python 3.x is installed on your system.
  2. Clone the repository or download the script to your local machine.
  3. Install the required Python package:

pip install exifread

Usage

  1. Edit the source_folder and destination_folder variables in the script to your desired paths.
  • source_folder: The directory where your unorganized photos are stored.
  • destination_folder: The directory where you want the organized photos to be placed.
  1. Run the script using Python:

python photo_organizer.py

Configuration

  • Logging: The script logs its operations and errors in photo_organizer.log. You can change the log file name and logging level at the beginning of the script.

Troubleshooting

  • Ensure that the paths to the source and destination folders are correct and accessible.
  • Check the photo_organizer.log file for detailed error messages if the script fails to organize some photos.

About

A script to reorganize photo files into year-month-day folders by creation date from EXIF data. Used as a way to standardize the organization of a photo gallery when using many different cameras.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages