Feature Request: Preserve existing assets when external library files are moved or reorganized #30546
Closed
forrest-x
started this conversation in
Feature Request
Replies: 1 comment 1 reply
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I have searched the existing feature requests, both open and closed, to make sure this is not a duplicate request.
The feature
Feature Request: Preserve existing assets when external library files are moved or reorganized
Description
When using the external library feature, Immich currently treats moved files as completely new assets during a rescan.
For example:
My external library contains three folders:
I moved folder
cinto foldera:After triggering a rescan of the external library, Immich detects these files as new assets instead of recognizing that they are the same photos/videos that already exist in the database.
As a result, Immich performs the following unnecessary operations again:
For a large external library, this can consume a significant amount of CPU/GPU resources and take a very long time.
Expected behavior
Immich should be able to detect that files are the same assets even if their paths have changed.
A possible approach could be:
Calculate and store a stable file hash (or use an existing asset identifier)
During external library scanning, compare the hash of discovered files with existing assets
If a matching asset already exists:
Additional context
Many users organize their photo libraries by moving folders or restructuring directories. Since the file content does not change, these operations should ideally be treated as "file relocation" rather than "new asset import".
This feature would greatly improve the experience for users with large external libraries and prevent unnecessary duplicate processing.
Thank you for considering this improvement.
Platform
All reactions