Automatically create albums matching the folder structure #1

Closed
opened 2024-10-28 16:50:33 +11:00 by kernald · 4 comments
kernald commented 2024-10-28 16:50:33 +11:00 (Migrated from git2.enoent.fr)

Assuming the following structure:

 - Foo
   - a.jpg
   - b.jpg
 - Bar
   - Baz
     - c.jpg
   - d.jpg

Three albums should be created:

  • Foo, containing a.jpg and b.jpg
  • Bar, containing d.jpg (and maybe c.jpg?)
  • Bar / Baz, containing c.jpg

The separator (e.g. the / in Bar / Baz) should be customisable.

Additionally, a marker file (e.g. .albumprops) in the album root should be able to override some properties:

  • Title
  • Cover photo

This however would require local access to the storage (rather than just API access to Immich), and potential file-system mapping.

Assuming the following structure: ``` - Foo - a.jpg - b.jpg - Bar - Baz - c.jpg - d.jpg ``` Three albums should be created: - `Foo`, containing a.jpg and b.jpg - `Bar`, containing d.jpg (and maybe c.jpg?) - `Bar / Baz`, containing c.jpg The separator (e.g. the `/` in `Bar / Baz`) should be customisable. Additionally, a marker file (e.g. `.albumprops`) in the album root should be able to override some properties: - Title - Cover photo This however would require local access to the storage (rather than just API access to Immich), and potential file-system mapping.
kernald commented 2024-10-28 16:53:09 +11:00 (Migrated from git2.enoent.fr)

mentioned in issue #2

mentioned in issue #2
kernald commented 2024-10-31 09:57:53 +11:00 (Migrated from git2.enoent.fr)

It could be interesting having an option to include photos from sub-directories in top-level albums as well, e.g.:

  • Top-level album only. In the example above, there would be only two albums created, Foo and Bar, with Bar containing c.jpg and d.jpg
  • Match folder structure. That's the example above.
  • Match folder structure plus recursive. That's the example above, but both Bar and Baz would contain c.jpg.
It could be interesting having an option to include photos from sub-directories in top-level albums as well, e.g.: - Top-level album only. In the example above, there would be only two albums created, `Foo` and `Bar`, with `Bar` containing `c.jpg` and `d.jpg` - Match folder structure. That's the example above. - Match folder structure plus recursive. That's the example above, but both `Bar` and `Baz` would contain `c.jpg`.
kernald commented 2024-12-03 19:03:20 +11:00 (Migrated from git2.enoent.fr)

mentioned in merge request !27

mentioned in merge request !27
Owner

Added in #29

Added in #29
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: kernald/immich-tools#1
No description provided.