Skip to content

fix(server): use stat instead of exiftool for file date metadata #17311

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

Merged
merged 3 commits into from
Apr 1, 2025

Conversation

mertalev
Copy link
Contributor

@mertalev mertalev commented Apr 1, 2025

Description

#16453 removed two stat calls in metadata extraction in favor of using exiftool. However, in practice, exiftool isn't as reliable in outputting file date metadata. This PR moves back to using stat, fetching the file dates concurrently with the exiftool call and only calling it once.

How Has This Been Tested?

Tested by uploading an image and confirming it has the correct file modification date.

@alextran1502 alextran1502 merged commit d911b76 into main Apr 1, 2025
45 checks passed
@alextran1502 alextran1502 deleted the fix/server-filecreatedate branch April 1, 2025 22:24
@mertalev mertalev changed the title fix(server): use stat instead of exifinfo for file date metadata fix(server): use stat instead of exiftool for file date metadata Apr 2, 2025
kirill-dev-pro pushed a commit to kirill-dev-pro/immich-but-with-public-albums-within-instance that referenced this pull request Apr 6, 2025
…ich-app#17311)

* use stat instead of filecreatedate

* update tests

* unused import
savely-krasovsky pushed a commit to savely-krasovsky/immich that referenced this pull request Jun 8, 2025
…ich-app#17311)

* use stat instead of filecreatedate

* update tests

* unused import
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants