Git Product home page Git Product logo

get-duplicatephotos's Introduction

Get-DuplicatePhotos

github-actions github-release

A script to locate duplicate image files between two sets of folders (e.g. Camera Roll folders vs other folders).

It is fairly common, for instance, to copy image files from your Camera Roll, and then leave traces of those edited copies around after modifying them. This script helps to locate those duplicates, assuming that they still have their original the image metadata (i.e. Date Taken).

How it works

  • The default duplicate criteria is to match only by Date Taken (e.g. 2021-01-01T00:11:22+0000).
    • Choose whether the duplicate criteria should also include file size and file hash.
  • Searches two groups of folders (i.e. source and other) for all descendent image files with an existing Date Taken attribute.
  • Compares files of the two groups of folders, identifying duplicates using the criteria you defined
  • Finally, exports duplicates into a duplicates.json file.

duplicates.json

For DateTaken-only criteria, the key is DateTaken, where DateTaken is in ISO 8601 format.

{
    "2021-01-01T00:11:22+0000": [
        "C:\\path\\to\\Camera Roll\\source.jpg", // The first file is the source file.
        "C:\\path\\to\\other folder\\duplicate.jpg", // The rest are duplicates.
        ...
    ],
    ...
}

For DateTaken, length, and file hash criteria, the key is DateTaken-Length-FileHash, where DateTaken is in ISO 8601 format, Length is a integer in bytes, and FileHashis an SHA256 hash value.

{
    "2021-01-01T00:11:22+0000-1234567-XXXXXXXXXX": [
        "C:\\path\\to\\Camera Roll\\source.jpg", // The first file is the source file.
        "C:\\path\\to\\other folder\\duplicate.jpg", // The rest are duplicates.
        ...
    ],
    ...
}

get-duplicatephotos's People

Contributors

leojonathanoh avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.