[Feature] Automatic creation of albums in external libraries #4279
Replies: 25 comments 52 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.
-
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.
-
Hi,
From directory on host computer. You can mount them read-only in docker, but the script should be run on host.
Eventually I could track folder->albumId externally in a db, but for easy implementation I chose to store in .album in the same folder structure.
From: johndoe0815 ***@***.***>
Reply to: immich-app/immich ***@***.***>
Date: Tuesday, 28 November 2023 at 20:29
To: immich-app/immich ***@***.***>
Cc: alvistar ***@***.***>, Comment ***@***.***>
Subject: Re: [immich-app/immich] [Feature] Automatic creation of albums in external libraries (Discussion #4279)
Where does it store these .album files, I didn't get that yet. My external library is so far mounted read-only, as also suggested by immich.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I would love to see this. I have a curated library of thousands of folders I imported into Immich. I was even able to adjust Immich's Storage Template to fit to my existing library naming schema. So currently Immich, on import, creates Directories that match my existing Library as soon as I create an Album with the pictures. Having the feature also the other way round, Immich creating an Album if it finds a folder named according to the Storage Template (which includes an {{album}}, that would be fantastic :-) |
Beta Was this translation helpful? Give feedback.
-
I just stumbled upon this issue while trying to import an external library. So, my vote goes to implementing folder support for Albums, either nested (preferable) or non-nested. |
Beta Was this translation helpful? Give feedback.
-
If you have, like somebody mentioned above, hundreds and thousands of folders, maybe you don't want an album for every single folder. I think a simple folder view would be sufficient - check #5409 |
Beta Was this translation helpful? Give feedback.
-
Hello, after hours of reading my 2 cents for a scripting solution in PowerShell. Maybe later a full module, for maintaining ( bulk action ) and customizing the awesome IMMICH by API. COPY OF README.MDImmich ( https://immich.app/ ) is absolutely great, but has weaknesses with mass processing of external libraries. A lot of people always have the same questions with GIT and very few have Python knowledge or Java Script to debug or customize the code snippets posted in various comments. Me neither ;) But besides SQL, PowerShell is my second native language, so thanks to the perfect Api I was able to help myself quickly. I would like to share this with you. The connoisseur sees the beginnings of a module. I decided against it, because module customizations could cause problems for users. Well, I tried to keep it simple. Therefore no synopsis, clean ReadMe or other. ( or error handling, shame on me ) Requirements are PowerShell 5.1 ( tested on Win10 & 11 ). Maybe Core on Linux works too, that's it. Customize the _param.ps1 in advance and then execute the scripts directly in the root, private are only functions. Currently there are two scripts that I really needed and these functions were asked again and again in this discussion.
Should there really be an interest for more ( the apo is powerful ), we could talk about an official PowerShell module >> psIMMICH :) PS: Please use the testAsset variable for testing. I have tested everything up and down in my 70K asset environment but you never know. And the ApiKey and Address in Code, it doesnt matter, local only :P |
Beta Was this translation helpful? Give feedback.
-
In the meantime, is there anyway to use the search feature to filter folder name? Also: does anybody have any information on what metadata searches capable of? I’ve never seen it return a single result for me and the docs don’t say anything other than that metadata is possible |
Beta Was this translation helpful? Give feedback.
-
I think this would be an useful feature addition to immich.
We start by keeping it very simple. External library based albums will be read only. Any changes that users would want to do: renaming/deleting albums, moving photos between albums, etc will have to be done outside immich and then initiate a rescan. Immich can then faithfully reset its state to whatever is in the external folders. I suppose there's still the question of allowing users to mix external and internal photos. For instance, creating albums that contains photos from both phone uploads and external libraries, or allowing shared users to add their photos to an external library album. Perhaps we can simply disallow these to start with. |
Beta Was this translation helpful? Give feedback.
-
The web code from @davidacampos works brilliantly for me. Noting I did need to set the variables as he recommended (host, path, total albums to 9999). This would be a much needed feature to build in imo.
|
Beta Was this translation helpful? Give feedback.
-
The bug
Erstwhile
--import
option from immich CLI also supported an-al
option 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