Skip to content

Python script to automatically organize photos and videos from a source directory into a date-based archive structure.

License

Notifications You must be signed in to change notification settings

ismailuysall/Media-Sorter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Media Sorter 📸🎥

Media Sorter

Welcome to Media Sorter, a Python script designed to help you automatically organize your photos and videos into a neat, date-based archive structure. This tool simplifies the management of your media files, making it easy to locate and enjoy your memories.

Table of Contents

Features

  • Automatic Organization: Automatically sorts photos and videos into folders based on their date.
  • Duplicate Detection: Identifies and manages duplicate files to save space.
  • EXIF Data Extraction: Utilizes EXIF metadata to determine the date and time of media files.
  • User-Friendly: Simple to use with clear instructions.
  • Cross-Platform: Works on any operating system that supports Python.

Getting Started

To get started with Media Sorter, you need to download the latest release. Visit the Releases section to download the script. After downloading, follow the steps below to set it up.

Prerequisites

Make sure you have the following installed on your system:

  • Python 3.x
  • pip (Python package installer)

Installation

  1. Clone the Repository:

    git clone https://github.com/ismailuysall/Media-Sorter.git
    cd Media-Sorter
  2. Install Required Packages: Use pip to install the necessary packages:

    pip install -r requirements.txt
  3. Download the Latest Release: Go to the Releases section to download the latest version of the script.

Usage

Once you have set up the Media Sorter, you can run it using the command line. Here's how:

  1. Open your terminal or command prompt.
  2. Navigate to the directory where you downloaded the script.
  3. Run the script with the following command:
    python media_sorter.py <source_directory> <destination_directory>

Replace <source_directory> with the path to the folder containing your media files, and <destination_directory> with the path where you want to save the organized files.

Example

python media_sorter.py /path/to/source /path/to/destination

How It Works

Media Sorter uses EXIF data embedded in your media files to determine the date they were taken. It then creates a folder structure based on the year, month, and day. This structure makes it easy to find and view your photos and videos.

Steps Involved

  1. File Scanning: The script scans the source directory for all media files.
  2. EXIF Data Extraction: It extracts the EXIF metadata to get the creation date of each file.
  3. Folder Creation: Based on the extracted dates, the script creates a corresponding folder structure in the destination directory.
  4. File Moving: Finally, it moves the files into their respective folders.

Topics

This project covers various topics relevant to media organization and management. Here are some key topics associated with Media Sorter:

  • Duplicate Detection: The script identifies duplicate media files to prevent clutter.
  • EXIF Data Extraction: It extracts EXIF metadata to gather important information about each file.
  • File Management: The tool simplifies the process of managing large collections of media.
  • Python: The script is written in Python, making it accessible and easy to modify.

Contributing

We welcome contributions to Media Sorter! If you would like to contribute, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes and commit them.
  4. Push your branch to your forked repository.
  5. Submit a pull request.

Your contributions help improve the project and make it more useful for everyone.

License

This project is licensed under the MIT License. See the LICENSE file for more information.

Contact

For questions or feedback, please feel free to reach out:

Thank you for using Media Sorter! We hope it helps you keep your media files organized. For more information, visit the Releases section to download the latest version and explore the features.

About

Python script to automatically organize photos and videos from a source directory into a date-based archive structure.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages