Giter VIP home page Giter VIP logo

photo_organizer's Introduction

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.

photo_organizer's People

Contributors

oldman-gg avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.