Skip to content

Organize images into dated folders by images metadata

License

Notifications You must be signed in to change notification settings

awdonahue/image-sorter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image Sorter

Introduction

Python script that will sort images into dated folders based off the images metadata

Requirements:

  • Python >= 3.6.3
  • Required Packages:
    • exifread
  • See here for supported image types

Setup


  1. Install python3

  2. Install python packages (from working directory)

pip3 install -r requirements.txt

Usage


To run the script with default args, run:

python3 ImageSorter.py [path/to/images]

The following args can be passed to config the script:

Arg Type Default Value Description
-h or --help optional N/A A quick reference on how to use the script
-o or --output optional tmp/images-sorted Target designation of sorted images
-d or --depth <year,month,day> optional month Folder depth on how to sort images
-m or --move optional False Move the images instead of copying them
-l or --log optional False Log the process in a report log file
dir positional N/A Where the image files are stored

Example usage to move images from dir ~/Pictures/MyPics into year folders (ie. 2017/, 2016/):

~$ python ImageSorter.py -m -d year ~/Pictures/MyPics

About

Organize images into dated folders by images metadata

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages