krueg
IImmich
•Created by krueg on 1/16/2025 in #help-desk-support
What is the best way to identify recently added / non-duplicates when uploading via immich cli?
Hello 👋 ,
I currently have a library with ~100,000 assets. I also have an external HDD with ~10,000 photos that I'm trying to upload into immich. When running the immich cli upload command in dry run mode, only about 6 of the 10,000 photos are new (the rest are duplicate). I would like to identify these 6 photos so that I can review and manage them (edit metadata, sharing, ...) after uploading.
According to this feature request (https://github.com/immich-app/immich/discussions/8716), it seems there may not be an easy way to identify these 6 after upload. Worst case scenario, I could write a bash script that executes the upload command for each file individually and log the response, but thought there may be an existing solution for this.
What would be the best way to identify these 6 non-duplicate photos?
- Does the immich cli "upload" command log which files are duplicate vs new?
- Is there an existing pattern to sort by recently added?
3 replies
IImmich
•Created by krueg on 8/28/2023 in #help-desk-support
Recommendations for ios app update pattern
To mitigate risk during updates, I have pinned the server version to a particular version (docker-compose) and disabled automatic app updates on my ios mobile (in order to pin the mobile app version). I will then periodically update both the server version and ios app version.
- This works, but gives the pain point that (for ios) it disables automatic app updates for all apps (requiring manual updates for all mobile apps)
I'm contemplating continuing to pin the server with periodic manual updates, but allowing automatic mobile ios app updates. This will likely cause the mobile app to be on newer versions than the server more frequently. I understand that this could introduce risk in compatibility, so I'm looking for insight from the community.
Given that in any scenario there is risk since immich is under heavy development:
- Are there any recommendations regarding patterns for updating versions?
- What pattern do others use for managing app updates?
3 replies
IImmich
•Created by krueg on 5/28/2023 in #help-desk-support
A few XMP usage questions
After reading the documentation and latest release notes (
1.58.0
), I have a few questions related to usage of XMP sidecars:
(1) Updating date metadata
If I have an existing photo that has an incorrect created_date
exif data. It sounds like I can use xmp files to update the date, either by creating a new xmp file within the existing file system and running the DISCOVER
job, or by updating the existing xmp file within the existing file system and running the SYNC
job. This will then queue metadata refresh.
- In order to update the file structure (since the created_date
was updated), will I need to run the STORAGE MIGRATION
job or is that part of the queued metadata refresh?
(2) How are xmp files handled during bulk cli upload for duplicates?
Consider the following use cases:
(2a) I have an existing asset foo.jpg
with no existing xmp file in immich. If I upload a duplicate file and as part of upload and there is also a new xmp file (<newXmpFile>
), how will the xmp files be resolved?
- will <newXmpFile>
be uploaded to the existing asset?
- will these assets not be treated as duplicate?
(2b) I have an existing asset bar.jpg
with and existing bar.jpg.xmp
file in immich. If I upload a duplicate file and as part of upload and there is also a new xmp file (<newXmpFile>
), how will bar.jpg.xmp
and <newXmpFile>
be resolved?
- will <newXmpFile>
overwrite the existing bar.jpg.xmp
for the existing asset?
- will these assets not be treated as duplicates?6 replies
IImmich
•Created by krueg on 5/22/2023 in #help-desk-support
How are filename collisions handled?
When filenames are normalized using the storage template, how does immich handle different files that result in the same name?
Based upon
storage-template.core.ts
, it seems the strategy is to append +<n>
to the name (before the extension) where <n>
is an integer
- https://github.com/immich-app/immich/blob/main/server/libs/domain/src/storage-template/storage-template.core.ts#L80-L90
Is this a correct understanding of the behavior?
Example:
Consider a scenario where the storage template chosen is Year/Year-Month-Day.extension
and 2 different files (both .jpg
) from the same day (2023-05-20
) are uploaded. Would this result in the following files?
- 2023/2023-05-20.jpg
- 2023/2023-05-20+1.jpg
Would these types of collisions cause any issues / would it be preferable to choose a storage template that guaranteed uniqueness of resolved file names?2 replies