Giter Club home page Giter Club logo

duplicate-photo-finder's Introduction

duplicate-photo-finder

Find duplicate photos in Mac Photos App

I was having around 50k photos in my Mac with lots of Duplicates in it. Apple doesn't provide a tool to identity them. So wrote this small tool to delete those duplicate photos.

How it works:

most(not all) of the duplicate photos will have same name with same size. so this tool will search all the photos with same name and size then create Album with current date (mm/dd/yy) and put them in Duplicates Photos folder.

Once it's added in the album you can go through the Album and delete them by pressing CMD+DELETE to delete permanently. (Though it’s very rare, album may contain photos which may not be duplicate. So be careful while deleting them)

How to verify:

Copy a name of the photo from duplicate album and search, you will see more than one copy of same photo. Also you can verify it by creating a duplicate photo, select recently duplicated photos, run this script

Current Implementation

It uses a smart algorithm for faster processing. First it iterate all the selected Photos, then sort them using quick sort algorithm to have similar names together

then it iterate through the list again to group the similar named photos and place them in an Album in "Duplicate Photos" folder

How to use:

open the script in script editor

open Photos app and select the photos you want to find duplicates in it.

then click on the run button.

How to use in Terminal:

go to the folder in Terminal where you downloaded this script

open Photos app and select the photos you want to find duplicates in it.

run 'osascript duplicate-photo-finder.scpt'

Sit back and relax till the script complete its job.

It will take some time based on the count of phots selected in Photos App

Please give it a star if you find this tool useful :)

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.