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

[FEATURE REQUEST] Derive Immich album description and location from Google photos JSON "enrichments" #297

Closed
chrisscotland opened this issue Jun 13, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request google photos

Comments

@chrisscotland
Copy link

This is an incredibly useful tool already but one feature that would be nice to have would be the ability to add additional metadata to Immich albums on import from Google photos.

Using the google photos android app you can add description text to albums. This feature does not seem to be available from google photos on the web. This text also does not appear in the takeout JSON files from what I can see and therefore there is no way to import it.

Using google photos on the web you can add (multiple) text fields into albums. These are listed as 'enrichments' in the album metadata.json. Other enrichments can be added such as an album location (again there can potentially be multiple).

I use these fields to add a description to an album and also a location where the original photos were not geotagged. Would it be possible to parse these JSON enrichments when importing an album to Immich (via a command line option?). For my use case all the text enrichments should be concatenated and added to the Immich album description. If a single location enrichment exists, and the photos have no geotag themselves, the album enrichment location should be added to the photos.

Attached screenshots show an album on google photos app, google photos web and after import to Immich. The relevant album takeout also attached.

Screenshot_20240613-104243
google album with text
immich album

takeout-20240613T094535Z-001.zip

@chrisscotland chrisscotland changed the title [FEATURE REQUEST] Process Google Photos album description and JSON "enrichments" for location and text. [FEATURE REQUEST] Derive Immich album description and location from Google photos JSON "enrichments" Jun 13, 2024
@simulot simulot added the enhancement New feature or request label Jun 13, 2024
@simulot
Copy link
Owner

simulot commented Jun 13, 2024

Good Idea
Thank you for having documented your request.

I like the idea of using the album's coordinates to set Photo's coordinates.
This would requiers to refactor the way of handling albums.

@chrisscotland
Copy link
Author

Thanks so much for the time you've put into this already, it's a great tool and works really well. I feel it will become more and more important as Immich moves towards a stable release and hopefully attracts more users wishing to take ownership back from Google.

@simulot simulot self-assigned this Jun 15, 2024
@simulot simulot mentioned this issue Jun 30, 2024
3 tasks
simulot added a commit that referenced this issue Jul 6, 2024
@simulot
Copy link
Owner

simulot commented Jul 7, 2024

This will end up in the next release:

v0 19 Album description

And all photos get the album location

@chrisscotland
Copy link
Author

Thank you so much, can't wait to test it

simulot added a commit that referenced this issue Jul 7, 2024
* add xmp structure

* fix Use google photos JSON content to set immich metadata  #329

* Merge branch 'main' into metadata

* add album texts and coordinates to the google JSON

* add metata and coordinates to albums and use album coordintates if the photo miss them

* wip

* Merge branch 'main' into metadata

* Merge branch 'main' into metadata

* wip

* Merge branch 'main' into metadata

* refactor album management

* fix: [FEATURE REQUEST] Derive Immich album description and location from Google photos JSON "enrichments" #297

* fix Google photos: update albums of duplicates photo #355

* improve the api trace

* use UTC in TakeTimeFromPath

* edit readme and release
@simulot simulot closed this as completed Jul 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request google photos
Projects
None yet
Development

No branches or pull requests

2 participants