duplicate-images icon indicating copy to clipboard operation
duplicate-images copied to clipboard

Make automatic deletion (dedup) smarter

Open philipbl opened this issue 7 years ago • 5 comments

Currently it selects the last item to save and deletes the rest. How about picking the oldest picture or the picture with the highest resolution?

philipbl avatar Apr 28 '17 19:04 philipbl

Thats better! keep only one copy of the image instead of giving user to choose>

gr8Adakron avatar Jul 11 '17 12:07 gr8Adakron

-1 . One of the reasons I started to interest in this project at all is since it doesn't take over completely and doesn't take me out of control of my valuable pictures and let me do the final decision. I think the No. 1 priority must be to prevent data loss!

But maybe it is a good idea to make this an optional choice, for those who like it to clean up for them on a best-quality or age driven approach instead; but it should not be the default, in my opinion!

Something which definitely may be added is some kind of "green border" around those assets in the flask webview, what the script computes out as "best" choice, to give a decision aid.

The-Judge avatar Jan 03 '18 10:01 The-Judge

Anything like this would be strictly optional. The current behavior is when you run

python duplicate_finder.py find --delete

Any duplicate images it finds, it keeps the first duplicate and "deletes" the rest. This behavior could be improved quite a bit to take into consideration resolution, modified time, etc.

@The-Judge I like your idea about adding a green border around the "best" image to keep.

philipbl avatar Jan 03 '18 17:01 philipbl

+1 for choosing a priority like resolution or timestamp. I have 138 pages of duplicates to manually delete as I just want to delete the lower resolution ones. If someone doesn't beat me to it I'll try and implement and make a pull request.

neilthomson avatar Jul 12 '18 23:07 neilthomson

@neilthomson Hi there! I've implemented preserving the largest file on deletion. You may want to take a look at this PR https://github.com/philipbl/duplicate-images/pull/57 It also contains some features.

DZamataev avatar Feb 04 '19 15:02 DZamataev