Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat - Support multiple -album flags #676

Open
PowerUser64 opened this issue Feb 6, 2025 · 0 comments
Open

Feat - Support multiple -album flags #676

PowerUser64 opened this issue Feb 6, 2025 · 0 comments

Comments

@PowerUser64
Copy link

It would be nice to be able to upload and organize pictures more at the same time. As far as I know, immich-go can currently add your photos into two albums at once, if you combine the -create-album-folder and -album flags. However, it would be organizationally convenient to be able to add things to more than just two at once.

For example, I keep my photos in self-organized albums, so I'll have a 2024-07-01 Road Trip/ folder for images that get organized by the -create-album-folder flag. Then, I like to have two other albums that things get placed in, those being Summer 2024 and an album that corresponds to the name of the camera I took them with, eg. A61.

Right now, if I specify -album A61 and -album 'Summer 2024' (in that order), images will only get added to the Summer 2024 album. What I'm suggesting in this feature request is that photos instead be added to both of the albums.


Alternative solution

An alternative solution to this might be to provide a modified version of the -use-full-path-album-name option that adds photos to multiple albums, one for each of their parent directories. For now, I'll call this -parent-folders-as-albums

For example, if I have this file structure,

$ pwd
/home/koolaid-guy/to-upload

$ tree
.
└── Summer 2024
    ├── A61
    │   └── 2024-07-01 Road Trip
    │       ├── _DSC0000.jpg
    │       ├── _DSC0001.jpg
    │       └── _DSC0002.jpg
    └── Phone
        └── 2024-06-29 Camping
            ├── 20240629_143210.jpg
            └── 20240629_181034.jpg

7 directories, 8 files

Running this:

$ immich-go upload -parent-folders-as-albums ./'Summer 2024'
 # ...

(using the proposed option)

... would result in Immich having the following album structure:

  • Summer 2024
    • A61_Photo_1.jpg
    • A61_Photo_2.jpg
    • A61_Photo_3.jpg
    • Phone_Photo_4.jpg
    • Phone_Photo_5.jpg
  • A61
    • A61_Photo_1.jpg
    • A61_Photo_2.jpg
    • A61_Photo_3.jpg
  • 2024-07-01 Road Trip
    • A61_Photo_1.jpg
    • A61_Photo_2.jpg
    • A61_Photo_3.jpg
  • Phone
    • Phone_Photo_4.jpg
    • Phone_Photo_5.jpg

To be honest I'm more a fan of the second approach, but I think the first approach could reuse more code. Thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant