Various utilities to manage photos. Supported photo formats are PNG, JPG and HEIC.
Process photos from a given folder (and all its sub-folders), and generate a csv file reporting all duplicates.
DuplicatePhotosFinder [--directory <directory>] [--output <filename>.csv]
directory: The path of the directory to process. Current directory by default.
output: The path of the output csv file to generate. Default is ./duplicate.csv.
Sort photos into folders named using date and location from photo Exif data.
SortPhotos [--directory <directory>] [--output <output>] [--location] [--undefined <name>] [--copy]
directory: The path of the directory to process. Current directory by default.
output: The path of the directory to copy or move sorted photo into. Default is ./SORTED.
location: Use location in addition to date to name folders.
undefined: The folder name to use when Exif data cannot be retrieved. Modification date will be used in such case. Default is UNDEFINED.
copy: Copy the photos instead of moving them.
Clone the repository and go to the project directory.
git clone https://github.com/ZooterOne/File-Utils
cd File-Utils/PythonUtilsSetup the Python environment.
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt python <script>.py <parameters>python -m unittest -v- Use perceptual hash algorithm to detect duplicate photos.