mirror of
https://github.com/immich-app/immich.git
synced 2025-07-09 03:04:16 -04:00
incorrect aspect ratio on iOS
This commit is contained in:
parent
e07457ee16
commit
056fdcbdb0
@ -44,8 +44,9 @@ class AssetService {
|
|||||||
isFlipped = ExifDtoConverter.isOrientationFlipped(exif?.orientation);
|
isFlipped = ExifDtoConverter.isOrientationFlipped(exif?.orientation);
|
||||||
width = exif?.width ?? asset.width?.toDouble();
|
width = exif?.width ?? asset.width?.toDouble();
|
||||||
height = exif?.height ?? asset.height?.toDouble();
|
height = exif?.height ?? asset.height?.toDouble();
|
||||||
} else if (asset is LocalAsset && _platform.isAndroid) {
|
} else if (asset is LocalAsset) {
|
||||||
isFlipped = asset.orientation == 90 || asset.orientation == 270;
|
isFlipped = _platform.isAndroid &&
|
||||||
|
(asset.orientation == 90 || asset.orientation == 270);
|
||||||
width = asset.width?.toDouble();
|
width = asset.width?.toDouble();
|
||||||
height = asset.height?.toDouble();
|
height = asset.height?.toDouble();
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user