Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jeremyfix/tidy_my_images

Python script to classify images from their EXIF datetime
https://github.com/jeremyfix/tidy_my_images

Last synced: 5 days ago
JSON representation

Python script to classify images from their EXIF datetime

Awesome Lists containing this project

README

        

Tidy My Images
==============

Python script to classify images from their EXIF datetime

Motivation
----------

I have a bunch of directories where I usually copy my images. But at some point, they all become 'to_classify', 'to_classify_2' , and so on. I like to get the images properly ordered in subdirectories root/YYYY/MM/filename with a filename being YYYY_MM_DD_hh:mm:ss.xxx where xxx is the original extension. The script tidy_my_images helps in doing the job by using the EXIF datetime tag of the images.

Installation
------------

The script relies on [exif-py](https://github.com/ianare/exif-py) and standard python otherwise. It requires at least python 2.7 as it is using argparse.

Usage
-----

To know how to use the script, use
> python tidy_my_images.py -h

The basic way to use the script is:
> python tidy_my_images.py Photos/ PhotosDst/

If you want to know what the script is doing, you can set up the verbosity (0, 1 or 2)
> python tidy_my_images.py Photos/ PhotosDst/ --verbosity 2

The script processes all the files, order and rename the images and copy the other files into PhotosDst/ignored_files