Skip to main content

Dedupe a set of pictures in a given folder and rename them using the yyyymmdd_HHMMss format

Project description

https://travis-ci.org/mina-asham/pictures-dedupe-and-rename.svg?branch=master

Ever had a shared folder of pictures with friends from one of your travels, and had a ton of weird filenames which made browsing pictures in order impossible?

This is a solution to that! Simply install this package and run a simple command to fix a selected folder by dedupe all pictures and renaming them using the yyyymmdd_HHMMss format.

Compatibility

Python 2.7+

Installation

From Zip

Download the latest source from GitHub repository.

Extract and run:

python setup.py install

Usage

Command line

Some examples:

dedupe-rename.py -d /home/pictures/collection
dedupe-rename.py -d /home/pictures/collection -o dedupe

Show command line options:

dedupe-rename.py -h

usage: dedupe-rename.py [-h] -d DIRECTORY [-o OPERATIONS] [-p PATTERNS]

Dedupe a set of pictures in a given folder and rename them using the yyyymmdd_HHMMss format

optional arguments:
  -h, --help                              show this help message and exit
  -d DIRECTORY, --directory DIRECTORY     input directory for all pictures
  -o OPERATIONS, --operations OPERATIONS  the operatiosn to perform (dedupe, rename, or both) (default: both)
  -p PATTERNS, --patterns PATTERNS        the glob patterns for pictures (default: *.jpeg,*.jpg,*.png)

Python Script

Sample:

from pictures import dedupe, rename
files = load_files_to_dedupe()
dedupe(files)
files = load_files_to_rename()
rename(files)

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

PicturesDedupeRename-1.0.4-py2.py3-none-any.whl (8.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file PicturesDedupeRename-1.0.4-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for PicturesDedupeRename-1.0.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1d5a28cbafb2bf27927c428d7b63f200bcb5dd90adb3742f1f2efcca39268853
MD5 7179fd1c10785fb52abe096f80573bf0
BLAKE2b-256 7be59263466f74ed93d012d7e18fde302e51bc6c8095c6e8a3dfbd493f9f0f89

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page