Is there an existing issue for this?
What happened?
Describe the bug
When a library includes symbolic links (or hardlinks) to photos, PictoPy appears to index the same underlying image multiple times instead of treating it as one media item.
Steps to reproduce
- Create folder
A with 20 images.
- Create folder
B containing symlinks to the same 20 images from A (or hardlinks).
- Add both folders in PictoPy settings.
- Start scan/indexing.
Expected behavior
Each physical image should be indexed once (deduplicated by inode/path-resolve/hash strategy), with a single media record in the UI.
Actual behavior
Duplicate entries appear for the same image content, and indexing/AI tagging runs repeatedly for linked copies.
Impact
- Slower scans and higher CPU usage
- Duplicate thumbnails/search results
- Larger metadata DB than necessary
Suggested fix
- Normalize file identity before insert (resolve symlink + stable file identity check).
- Add a unique constraint / duplicate guard in ingestion pipeline.
- Skip AI pipeline when file identity already exists.
Record
Is there an existing issue for this?
What happened?
Describe the bug
When a library includes symbolic links (or hardlinks) to photos, PictoPy appears to index the same underlying image multiple times instead of treating it as one media item.
Steps to reproduce
Awith 20 images.Bcontaining symlinks to the same 20 images fromA(or hardlinks).Expected behavior
Each physical image should be indexed once (deduplicated by inode/path-resolve/hash strategy), with a single media record in the UI.
Actual behavior
Duplicate entries appear for the same image content, and indexing/AI tagging runs repeatedly for linked copies.
Impact
Suggested fix
Record