Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate detection: don't upload a photo if a larger photo with the exact same datetime already exists #241

Open
cuu508 opened this issue May 14, 2024 · 2 comments

Comments

@cuu508
Copy link

cuu508 commented May 14, 2024

I'm looking to upload photos exported via Google Takeout into Immich. The problem is, some of these photos I already have in Immich, uploaded directly from my phone, in their original quality. The Takeout export has some of the same photos, but in reduced quality. If I upload them as-is, I would have many, many duplicates in the end.

Would it be possible to have an optional feature behind a flag, where for each photo to be uploaded immich-go checks if a photo with the exact same timestamp already exists.

  • If a photo exists, and is larger, then do not upload the smaller version
  • If a photo exists, and is smaller, then perhaps replace it with the larger version

Would something like this make sense (and be technically feasible)? Or perhaps there is an existing way to avoid duplicates?

I'm aware of the work-in-progress Immich duplicate detection feature – this one, when ready, would work on already uploaded photos. It would be nice to be able to avoid duplicates in the first place, during upload.

@cuu508
Copy link
Author

cuu508 commented May 14, 2024

Oops, looking at my own Immich library, there are many instances where multiple photos are taken in the same second (some would be JPG+RAW pairs, but also photos shot in burst mode, or just in quick succession). So it's not going to be quite as simple as I had imagined :-/

@simulot
Copy link
Owner

simulot commented Jun 1, 2024

I'm currently focused on another part of the project. I'll come back on this soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants