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

fix(server): exiftool largefilesupport only set for the first call #10167

Merged

Conversation

stephen304
Copy link
Contributor

@stephen304 stephen304 commented Jun 11, 2024

The previous largefilesupport fix doesn't work as it should since exiftool is used as a long-running process in stay_open mode. In this mode, flags passed when spawning the process only take effect until the first -execute, after which the flags are reset. So the previous fix for largefilesupport only works for the first operation.

This branch reverts that fix and instead passes the largefilesupport flags to the write read command each time, which results in the flag being set for each operation and ensures that large files work for all metadata read operations.

I also noticed exiftool being used for extractBinaryTagToBuffer and writeTags. The former doesn't appear to have any way to add largefilesupport flags and the latter appears to be only for sidecar metadata files so it probably isn't needed, but could probably be added there too.

Fixes #4349

@mertalev mertalev changed the title Fix the exiftool largefilesupport fix fix(server): exiftool largefilesupport only set for the first call Jun 11, 2024
@alextran1502 alextran1502 merged commit 216cca4 into immich-app:main Jun 12, 2024
23 of 24 checks passed
@stephen304 stephen304 deleted the exiftool-largefilesupport-fix branch June 12, 2024 11:47
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.

[BUG] Exif Data not processed for large video files
4 participants