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

(0.23.0 Alpha) RAW file metadata #533

Closed
nalsai opened this issue Nov 11, 2024 · 2 comments
Closed

(0.23.0 Alpha) RAW file metadata #533

nalsai opened this issue Nov 11, 2024 · 2 comments

Comments

@nalsai
Copy link

nalsai commented Nov 11, 2024

When importing raw files using the latest alpha (v0.23.0-alpha5) of immich-go it doesn't detect the date from orf and rw2 files.

Exiftool and by extension immich are able to get the date from them.
Therefore I would want either better date extraction in immich-go or the ability to disable it and let immich handle it.

Here are example files: https://send.bitwarden.com/#g9qT153smEirybIlAQLllw/73bvKQWALNv4ZZ3sNOIbSg
Since they are too large, I can't attach them directly using GitHub. They are available for 30 days.
I included the JPEG files for reference. They work correctly and the raw files should be imported with roughly the same data as their respective JPEG file.

@simulot
Copy link
Owner

simulot commented Nov 11, 2024

I have downloaded your samples. Thanks a lot.

The panasonic has a tag Time Stamp that looks to be in UTC:

======== YG816412.jpg
Time Stamp                      : 2024:07:07 19:33:32
Date/Time Original              : 2024:07:08 04:33:32.561
======== YG816412.rw2
Time Stamp                      : 2024:07:07 19:33:32
Date/Time Original              : 2024:07:08 04:33:32

The Olympus has a tag Date Time UTC

======== YG816507.jpg
Date/Time Original              : 2024:07:08 04:35:07
Date Time UTC                   : 2024:07:07 19:37:07
======== YG816507.orf
Date/Time Original              : 2024:07:08 04:35:07
Date Time UTC                   : 2024:07:07 19:37:07

I have dropped your files directly on my Immich page. The server's TZ is UTC, my laptop is set of UTC+1.
Here are the results:

  • YG816412.jpg: 4:33 AM GMT+9
  • YG816412.rw2: 4:33 AM +00.00
  • YG816507.orf: 4:35 AM GMT+9
  • YG816412.jpg 4:35 AM GMT+9

When I set my TZ to UTC+0900, I get same results.

Therefore I would want either better date extraction in immich-go or the ability to disable it and let immich handle it.

The --capture-date-method=NONE let immich dealing with the dates. In that case, immich-go give the modification date of the file. This field is mandatory, and

With the last alpha version released, my laptop set on UTC+0900, with date extraction disabled:

  • YG816507.jpg: 1:35 PM GMT+9
  • YG816507.orf: 1:35 PM GMT+9
  • YG816412.jpg: 1:33 PM GMT+9
  • YG816412.rw2: 1:33 PM GMT+9

The time comes from the file's date. The file date is a mandatory filed fir the upload. I have modified immich-go to give an empty date;

  • YG816507.jpg: 4:35 GMT+9
  • YG816507.orf: 4:35 AM GMT+9
  • YG816412.jpg: 4:33 GMT+9
  • YG816412.rw2: 4:33 AM; no TZ

Quite good, isn't it?

I have re upload your files with my TZ set to Paris, and it still works.
So, I don't see any reason to maintain the not so good code for extracting dates of capture before uploading.

@nalsai
Copy link
Author

nalsai commented Nov 12, 2024

That's perfect, thank you!

@nalsai nalsai closed this as completed Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants