agross / immich-duplicates

Find image and video duplicates in Immich.
129 stars 5 forks source link

Improve "best asset" selection logic #13

Closed sircharlo closed 8 months ago

sircharlo commented 8 months ago

In this PR I added a very bare-bones logic to detect the best asset.

The asset will be selected, in order of priority, by analyzing live photo info, resolution, file extension (HEIC over JPG), and finally file size.

Additionally, the button to keep the best asset will not be enabled for videos of wildly varying durations (since they are unlikely to actually be duplicates).

Finally, live photos will clearly be labeled as such, to facilitate decision-making for the end users.