1
0
mirror of https://github.com/immich-app/immich.git synced 2025-06-24 04:46:50 +02:00

fix(server): use exiftool decoded values and unify metadata extraction (#2908)

* refactor(server): metadata extraction

* chore: upgrade exiftool

* chore: remove log

* fix: other rotation cases

---------

Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
This commit is contained in:
Thomas
2023-09-18 14:06:03 +01:00
committed by GitHub
parent b6c6a7e403
commit 49ef86173f
8 changed files with 440 additions and 403 deletions

View File

@ -152,11 +152,11 @@ export function getAssetFilename(asset: AssetResponseDto): string {
}
function isRotated90CW(orientation: number) {
return orientation == 6 || orientation == 90;
return orientation === 5 || orientation === 6 || orientation === 90;
}
function isRotated270CW(orientation: number) {
return orientation == 8 || orientation == -90;
return orientation === 7 || orientation === 8 || orientation === -90;
}
/**