immich-go
immich-go copied to clipboard
Preserve descriptions of duplicates
When running de-duplication, would it be possible to preserve the description of the deleted duplicates by also adding the description to the preserved image?
Example:
Lower quality(LQ) google photos image in album "Dog" with description: "This is a cute dog" Higher quality(HQ) original of the same image not in any album with no description.
Current de-duplication behaviour:
- De-duplication runs
- removes the LQ image
- ascociates the HQ image with the album "Dog"
- the description of the LQ image is lost. The HQ image has no description.
Desired de-duplication behaviour:
- De-duplication runs
- removes the LQ image
- ascociates the HQ image with the album "Dog"
- the description of the LQ image gets applied to the HQ image. The HQ image now has the description "This is a cute dog".
I also just noticed the same happens on upload, when adding a google takeout zip with descriptions on the images. The descriptions get lost when my immich library already has the same images in higher quality.
It would be nice if the decription would be added to the higher quality version if it has none.
That makes sense. On the other hand, if you run the import several times, the description will accumulate descriptions.
I should add a parameter to control how takeout comments are handled:
- remplace
- added to existing comment
- ignore
True, that would be nice. And if "add to existing description" is chosen, maybe compare the strings and if they are exactly the same then leave them be. And if they are different then merge/add them. Or make that another option?
Btw, thank you for this great tool and your efforts!
The parameter list becomes a mess. I work on restructuring the command line argument parsing before. Stay tuned.
Add to existing wouldn't accumulate if you check if the current description already "contains" what you are about to add/append. E.g. version 1: "A flower" version 2: "A pretty flower"
Result: "A flower A pretty flower"
Next run, the result already contains both strings so niether would be appended, and the combined result kept.