Code Monkey home page Code Monkey logo

pics-sorter's Introduction

pics-sorter

A simple use of exif data with python to group pics by places and periods. A good partner for people who have just too many files to sort !

Getting Started

Prerequisites

$ pip install -U googlemaps

Installing

Once you download file_sorter.py, open it with your favorite text-editing sofware.

Now go get your own API key here and past it in gmaps_key.

Change the dir_path to the directory which contains all your pics without any subdirectory.

Other editable values:

  • distance_max: the maximum distance before spliting an event
  • duration_max: the maximum duration before spliting an event
  • Month: edit it for you own language
  • is_nonGPS_allowed: allow files with no GPS data (only creation date)
  • is_nonGPS_merge_allowed : allow events with same date and no GPS data to merge

Launching

Don't forget to make a backup first.

Execute it like a basic .py program

How it works ?

The program collect the GPS and CreationDate data of all files in dir_path using Exiftool.

Then, it test the distance and the duration between each: if it's higher than distance_max or duration_max, it groups all the previous matching files into one folder, named by the place and the period.

Contributing

Any improvement will be greatly appreciated. If you have a faster way to get exif data from pics / mov files, feel free to contribute !

Authors

  • Mathieu Menoux - Initial work

License

This project is licensed under the MIT License - see the LICENSE.txt file for details

Acknowledgments

  • A big thanks for the awesone Exiftool
  • Hat tip to anyone who's code was used

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.