Skip to content
Search pictures at given paths and sorts them based on there exif data
Branch: redis
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
basic_ops.py
db_ops.py
exif_ops.py
face_ops.py
file_ops.py
location_ops.py
main_ops.py
mt_ops.py
pic_sort.py
print_exif.py

README.md

pic_sort

This repo contains a simple python script to find and sort various of pictures.

Each picture/image found is sha512 hashed before it is copied/moved to the destination. Only one copy of each file is saved, so a file based deduplication is performed.

The pictures are sorted by following aspects:

  • date - extracted from exif data (fallback to modification time when no exif data available)
  • author - extracted from exif data
  • camera model - determined from various exif data
  • location
    • creates following directory tree: <country code>/<area>/<closer area>/<city>
    • for each level of the tree a directory named _all_ is created contains all images/pictures from this area
    • determined by the location from exif data if possible
    • fallback to parsed gpx files and determine approximated location by time matching

For all aspects/categories a directory named _unknown_ is created contains all remaining files.

Usage

For a help message simply run ./pic_sort.py -h.

License

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Author Information

You can’t perform that action at this time.