Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (
Help us improve Python packaging - Donate today!

Organize image files by date taken

Project Description

Organize image files by date taken

All tiff and jpg images under the given source directory are copied to the destination directory under subdirectories with names corresponding to when they are taken. Files with no or invalid exif metadata are put in the unknown directory.

The destination directory have the following structure after processing:


The original filenames are preserved. If a destination filepath already exist, there are two possible outcomes:

  • If the old filepath’s content is identical to the new one, the program does nothing and continues to the next image.
  • If the contents of the old and new files are different, it will append an integer until the content of an existing file matches or the path does not already exist. This means that if there are three source files named 1.jpg with identical date metadata but different contents, the final names will be 1.jpg, 1-1.jpg and 1-2.jpg.


Install with one of the following commands:

$ easy_install imagesort

or alternatively if you have pip installed:

$ pip install imagesort


Type imagesort -h for a list of available options.


Copying images from inputdir to outputdir:

$ imagesort inputdir outputdir

Use the dry-run flag to see which actions will be performed without actually doing anything:

$ imagesort --dry-run inputdir outputdir



Running the tests during development requires pytest. Install dependencies with

$ pip install -r requirements.txt

and then run tests with

$ py.test

Alternatively, if you have tox installed, just run tests by running:

$ tox
Release History

Release History

This version
History Node


History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
imagesort-0.2.0.tar.gz (4.3 kB) Copy SHA256 Checksum SHA256 Source Jan 8, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting