Skip to content
/ phockup Public
forked from ivandokov/phockup

Media sorting and backup tool to organize photos and videos from your camera in folders by year, month and day.

License

Notifications You must be signed in to change notification settings

neopar/phockup

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Phockup

Build Status

Media sorting tool to organize photos and videos from your camera in folders by year, month and day.

How it works

The software will collect all files from the input directory and copy them to the output directory without changing the files content. It will only rename the files and place them in the proper directory for year, month and day.

All files which are not images or videos or those which do not have creation date information will be placed in a directory called unknown without file name change. By doing this you can be sure that the input directory can be safely deleted after the successful process completion because all files from the input directory have a copy in the output directory.

Installation

Linux

Requires snapd

sudo snap install phockup

Mac

Requires Homebrew

brew tap ivandokov/homebrew-contrib
brew install phockup

Windows

  • Download and install latest stable Python 3
  • Download Phockup's latest release and extract the archive
  • Download exiftool from the official website and extract the archive
  • Rename exiftool(-k).exe to exiftool.exe
  • Move exiftool.exe to phockup folder
  • Open Command Prompt and cd to phockup folder
  • Use the command below (use phockup.py instead of phockup)

Usage

Organize photos from one directory into another

phockup INPUTDIR OUTPUTDIR

INPUTDIR is the directory where your photos are located.
OUTPUTDIR is the directory where your sorted photos will be stored. It could be a new not existing directory.

Example:

phockup ~/Pictures/camera ~/Pictures/sorted

Changelog

v1.2.1
  • Windows compatibility fixes
v1.2.0
  • Changed synopsis of the script. -i|--inputdir and -o|--outputdir are not required anymore. Use first argument for input directory and second for output directory.
  • Do not process duplicated files located in different directories.
  • Suffix duplicated file names of different files. Sha256 checksum is used for comparison of the source and target files to see if they are identical.
  • Ignore .DS_Store and Thumbs.db files
  • Handle case when exiftool returns exit code > 0.
  • Use os.walk instead of iglob to support Python < 3.5
  • Handle some different date formats from exif data.
v1.1.0
  • Collect all files instead only specified file types. This also enables video sorting.
v1.0.0

Initial version.

About

Media sorting and backup tool to organize photos and videos from your camera in folders by year, month and day.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 90.2%
  • Shell 9.8%