mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
fix(web): aspect ratio for photos with Rotate 270 CW orientation (#3003)
* fix(web): aspect ratio for photos with Rotate 270 CW orientation * Remove checks assuming we can have only numeric values * Remove the -90 value check for the orientation * Add comment to numeric values of the orientation tag
This commit is contained in:
parent
add5219d34
commit
86562f256f
2 changed files with 3 additions and 8 deletions
|
|
@ -39,13 +39,7 @@
|
|||
return [thumbnailWidth, thumbnailHeight];
|
||||
}
|
||||
|
||||
if (asset.exifInfo?.orientation === 'Rotate 90 CW') {
|
||||
return [176, 235];
|
||||
} else if (asset.exifInfo?.orientation === 'Horizontal (normal)') {
|
||||
return [313, 235];
|
||||
} else {
|
||||
return [235, 235];
|
||||
}
|
||||
return [235, 235];
|
||||
})();
|
||||
|
||||
const thumbnailClickedHandler = () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue