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

Use google photos JSON content to set immich metadata #329

Closed
m1ndy opened this issue Jun 27, 2024 · 5 comments
Closed

Use google photos JSON content to set immich metadata #329

m1ndy opened this issue Jun 27, 2024 · 5 comments

Comments

@m1ndy
Copy link

m1ndy commented Jun 27, 2024

Hi,

I've been scouring the readme and Github in general searching for a project that parses Takeout archives and transfers as much info of their .json sidecar files back into the media item's exif or database (like in case of immich)

Can we have a table of this sorts filled and added to the readme?

JSON bit Photos Videos
Edited Geolocation coordinates Imported into EXIF for format X, Y, Z Imported into abc, for formats xyz. Not imported for formats m,n,o.
Text Description added to photo ..
Rotation Information ..
Face Cluster Information
Edited Capture date/time
'Uploaded from' device info
Upload date/time
@simulot
Copy link
Owner

simulot commented Jun 27, 2024

It's not as simple.

Immich-go upload images without touching them, and immich process them as it wants.
The date of capture that comes from the JSON

The rest comes from the EXIF data or is ignored.

@simulot simulot added the documentation Improvements or additions to documentation label Jun 29, 2024
@simulot
Copy link
Owner

simulot commented Jun 29, 2024

A section of the readme describes how dates are determined.

@simulot simulot closed this as completed Jun 29, 2024
simulot added a commit that referenced this issue Jun 29, 2024
@simulot simulot mentioned this issue Jun 29, 2024
simulot added a commit that referenced this issue Jun 29, 2024
* Relase 0.18

fix #329

* edit release.md

* add screen redering

* edit
@m1ndy
Copy link
Author

m1ndy commented Jun 30, 2024

Sorry, does immich-go not fetch edited location data and other bits from Takeout's JSON?

The only bit it captures from the JSON is capture date?!

That answers that table, then, no? Just add the table and list every row as 'no', 'no', 'no', etc

@simulot
Copy link
Owner

simulot commented Jun 30, 2024

The problem is how to pass the information to Immich.

The upload API (https://immich.app/docs/api/upload-asset) accept only a field named fileCreatedAt used by Immich-go to set the date of the capture. There is an API endpoint to update the coordinates and the description (https://immich.app/docs/api/update-asset). Immediately after the upload, the photos are placed in a server process queues for extracting the metadata.

The server extract GPS, camera model, date of capture, lens, ISO, detect faces, etc. I don't know how this process behave on just updated photos. I suspect that any information present in EXIF overrides what has been updated previously.

The face detection would suppose there is a way to match them with the immich persons.
Any other piece is not used.

@simulot
Copy link
Owner

simulot commented Jun 30, 2024

I'm discussing with the immich team on possibilities. The most promising is to build a sidecar file with missing part on the go.

@simulot simulot reopened this Jun 30, 2024
@simulot simulot added google photos and removed documentation Improvements or additions to documentation labels Jun 30, 2024
@simulot simulot mentioned this issue Jun 30, 2024
3 tasks
@simulot simulot changed the title Update readme to reflect which bits of Google Photos Takeout JSON are included/excluded Use google photos JSON content to set immich metadata Jun 30, 2024
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
Projects
None yet
Development

No branches or pull requests

2 participants