Code Monkey home page Code Monkey logo

tymeline's Introduction

Tymeline

Image organization tool.

Usage

$ python tymeline.py <directory>

The directory is the only argument and specifies the top-level directory where sorting of pictures should be done.

It will create top-level directories denoting the Year which images within that directory were taken. A maximum of 12 sub-directories will be created for each of the top-level Year directories, each denoting the Month which the picture was taken (numerically). Finally, images are then moved into their corresponding folders.

If there are directories or other non-image files at the specified directory, they will be moved into a folder called unsorted at the top-level directory.

Moving new pictures into the top-level directory, outside of any of the Year folders, and re-executing tymeline.py will sort the remaining pictures into their corresponding Year directory or unsorted.

Example

~/test » tree # unsorted images at the top-level directory
.
├── 20150621_143458.JPG
├── 20160704_125048.JPG
├── 20161028_235123.JPG
├── 20161029_144521.JPG
└── 20170624_143638.JPG

0 directories, 5 files
------------------------------------------------------------
~/test » python ~/Development/Tymeline/tymeline.py . # '.' is my top-level directory
------------------------------------------------------------
~/test » tree # all images are sorted according to their EXIF data (or creation/last modified as fallback if EXIF is not available)
.
├── 2015
│   └── 06
│       └── 20150621_143458.JPG
├── 2016
│   ├── 07
│   │   └── 20160704_125048.JPG
│   └── 10
│       ├── 20161028_235123.JPG
│       └── 20161029_144521.JPG
└── 2017
    └── 06
        └── 20170624_143638.JPG

7 directories, 5 files
------------------------------------------------------------

tymeline's People

Contributors

seanpianka 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.