[Feature] Automatic creation of albums in external libraries #4279
Replies: 38 comments 77 replies
-
|
This doesn't seem like a bug, though it would be a much appreciated feature |
Beta Was this translation helpful? Give feedback.
-
|
i thought of it as a bug because I felt External library feature as a "natural progression" of import feature in CLI and that feature offered album creation. |
Beta Was this translation helpful? Give feedback.
-
|
Well, I second that. Automatic creation of albums from external libraries would be really a nice feature . |
Beta Was this translation helpful? Give feedback.
-
|
Definitely not a bug, since it was never designed to do that in the first place. A feature request is more appropriate though. There are actually a lot of library enhancement requests, so it would be good to make a list and include this one as well. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Hello, https://github.com/alvistar/immich-albums Main issue is that the script needs also access directly to postgres as API to lookup an asset by oiriginal path is not exposed in the controller. I am sharing hoping this can help somehow and eventually this functionality will be integrated in CLI. |
Beta Was this translation helpful? Give feedback.
-
that looks very nice. Maybe you can open a feature request to expose that API? We absolutely want to support external API access for relevant usecases :) |
Beta Was this translation helpful? Give feedback.
-
|
Yeah same issue here. When i try use the import flag, it asks me if i want to upload all the images which i dont want to do. |
Beta Was this translation helpful? Give feedback.
-
|
For me, this is the last step before migrating to Immich. With this feature, the amount of people that will migrate to Immich will be really huge :). Can't wait to see this implemented! |
Beta Was this translation helpful? Give feedback.
-
|
Can you give a more detailed explanation of how this feature would work? |
Beta Was this translation helpful? Give feedback.
-
|
I see it's on discord in alex todo |
Beta Was this translation helpful? Give feedback.
-
|
I would also completely migrate to immich if we had this. All of my photos are on the hard drive in a directory called "Photos", curated like this, where of course "Album_N" is a manually input description of the event. I have 1000s of such directories, curated over the years, as I am sure most avid photographers have... It would be great if we could use the info in a directory structure that is already there! |
Beta Was this translation helpful? Give feedback.
-
|
Had the same issue as the rest... existing collection with many folders but now showing "flat" in Immich, so I created a quick and dirty JavaScript snippet that helped me create those. How it works?
For me this is good enough as it's a one-time thing. It currently doesn't handle re-running the script (i.e. removing autogenerated albums and recreating them) meaning you will need to remove the auto-generated albums to start from scratch (is there tagging for albums in Immich? this could help to tag remove them easily). To run, navigate to Immich's web app in a browser (tested in Chrome), and copy&paste it to the "console" and run it. Make sure to change as needed under the PARAMETERS section of the snippet: |
Beta Was this translation helpful? Give feedback.
-
|
@davidacampos this actually worked for me. i went to here then press F12 in browser, this opens up console. I copied your code to note++ to edit. i edited the following
fyi for reference my docker compose volumes for pics are like this
then i copied the edited code into the console, then ran it. and it successfully created the albums. Ty you so much. hopefully the devs add this into the immich app gui as an action button or something. it's so simple to use. *update based on the maintainers advice, i opted to remove the quote above (which had the full script) for every1s safety as a precaution. if you want to see the original, refer to the original poster davidacampos who posted above. what i did leave though is the parts i modified. very minimal edits and you can see for yourself they don't do anything by itself. i only commented based on his code what i changed to get it to work for me. |
Beta Was this translation helpful? Give feedback.
-
|
Hi all, It still needs some love regarding documentation but the script is working. Thanks everybody, |
Beta Was this translation helpful? Give feedback.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
-
|
I just shared a small Python script that creates albums in Immich based on your local folder structure using the Immich API. It scans your media folders and auto-generates albums accordingly |
Beta Was this translation helpful? Give feedback.
-
|
Hey all, If the search function were improved to find patterns in the full path of the file, then manual album creation would be awesome for external libraries. For me it would simply do all my dreams. E.g.: Search pattern: "joe archive nepal" This way I could find the photos across multiple directories which are preorganized in the external folder structures, so I could select them all in Immich and assign them to a new album. It provides even more flexibility compared to the Ext lib folder strucure --> Album name mechanism. What do you think? BTW, Immich is just a gemstone, I love U guys!!! |
Beta Was this translation helpful? Give feedback.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
-
|
9/19/25 and this is still missing I was shocked when I tried this on recommendation of a lot of different home-labers only to find immich can't handle a basic folder structure. What is going on upstairs? |
Beta Was this translation helpful? Give feedback.
-
|
Would this work as a branch for testing? I haven't had time to clone the repo and look into it properly but might be a useful start to someone. It's probably missing some vital code but just my thoughts... The idea is:
1. server/src/services/library.service.ts 2. server/src/interfaces/album.interface.ts 3. server/src/repositories/album.repository.ts 4. server/src/dtos/system-config.dto.ts Some other thoughts about a further build..
|
Beta Was this translation helpful? Give feedback.
-
|
Would it help to down-scope this for the first version? How about:
This means if you really want nested albums (this is not a particularly helpful way to organize photos IMHO), then you can manually mount each path separately as an external library without worrying about duplicates/conflicts, e.g.
This should not conflict with any future feature of auto-discovery or support for nesting, if it would ever comes to pass. |
Beta Was this translation helpful? Give feedback.
-
|
Can we create an issue to track implementation of this feature? I want to subscribe and be notified when the feature is released, which is not possible currently with discussions, but is with issues. |
Beta Was this translation helpful? Give feedback.
-
|
But, this is not an issue... Nobody understands you.
|
Beta Was this translation helpful? Give feedback.
-
|
So far I can see 4 external solutions for this, not sure which one to implement (NB also trying to move from Synology Photos, using Digikam and really want to keep the folder structure I have built up over decades): https://github.com/alvistar/immich-albums which are all a little different. No idea which is 'best' for my usecase (converting from Synology Photos and wanting to keep my folder based structure whilst sharing with my family) though. I think the length of this discussion (and the one on #10089) shows that there is a demand for this as a feature... |
Beta Was this translation helpful? Give feedback.
-
|
you can now browse existing folders with immich. no need to do any extra methods like before. so, if you got a folder layout e.g. on truenas server in your dataset, you can simply to go immich, add those mnt points to those folders. then in immich u can access those folders. u however have to manually mount those folder locations for each of those folders. |
Beta Was this translation helpful? Give feedback.
-
|
I also would like this feature. Since the folder structure is already visible, why not start there with a bare functionality? For example adding an option in folder view like "Automatically add pictures in this folder to an album". For starters, that album could be named manually and include all files in the folder. I think from there it would be easy to give some more options, like including/excluding subfolders or having a naming scheme. |
Beta Was this translation helpful? Give feedback.
-
|
If anyone is running the v3 RC can you check if this is something that can be accomplished using the new Workflows feature? |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
The bug
Erstwhile
--importoption from immich CLI also supported an-aloption due to which the folders from external library getting imported would also create albums.Now with new External Library feature, photos are getting imported natively but they are not creating Albums.
The OS that Immich Server is running on
podman on ubuntu
Version of Immich Server
v1.79.0
Version of Immich Mobile App
v1.79.0
Platform with the issue
Your docker-compose.yml content
Same as docker-compose.yaml on immich github.Your .env content
Reproduction steps
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions