Skip to content

[Feature Request] Library: Add post-import catalog-wide duplicate and near-duplicate finder #4403

Duplicate

Description

@miloszbaczek

Problem
While LightCraft can skip binary duplicates during import (LR-IMP-DUPES), users have no built-in way to scan an existing or migrated catalog to find duplicate files residing in different folders or visually near-identical shots (redundant bursts or RAW + JPEG pairs).

Proposal
Add a cancellable background command (library.findDuplicates) supporting exact-binary matching (content_hash + file size pre-filter) and visual near-duplicate clustering (high perceptual similarity threshold).

Present detected groups in a non-destructive review view where users can inspect paths, file formats, and dimensions and freely select any item in a group (avoiding the import-dialog selection restriction tracked in #2992) to mark as Rejected or remove via guarded confirmation dialogs.

Never delete files automatically during scanning.

Out of scope
Import-dialog duplicate checkbox selection bug (tracked in #2992 / PR #1425).

Video duplicate detection (video assets are not yet supported).

Acceptance criteria
Scanning an existing catalog clusters exact binary duplicates across folders and near-identical shots without blocking the UI thread.

Cancellation cleanly aborts in-progress scans; unhashed files are handled safely without crashes.

Integration tests cover exact hash clustering, similarity threshold bounds, and non-destructive review selection.

Duplicate check / Related
Checked LR-IMP-DUPES, #2992, #1425, and #1947; none provide post-import catalog-wide duplicate detection.

Activity

  1. added
    duplicate
    on Nov 16, 2026
  2. ticket-craft commented on Nov 16, 2026

    @ticket-craft

    Possible duplicate of #3505.

    Thanks! This ticket describes several separate problems:

    • Catalog-wide exact-duplicate scan and clustering
    • Visually near-duplicate clustering
    • Non-destructive review view with selection, reject and guarded removal

    It helps a lot if each one has its own ticket, so they can be tracked and fixed separately.

    Possibly related: #4146, #4147 and #4402.

  3. FredApps commented on Dec 3, 2026

    @FredApps
    Contributor

    Duplicate of #3505 (finding duplicate and near-duplicate photos). The design in this proposal is worth linking there when someone picks that up. Please add any extra details there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogduplicatemultiple issuespriority: medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions