|
@@ -189,7 +189,8 @@ export function getAssetRatio(asset: AssetResponseDto) {
|
|
|
let width = asset.exifInfo?.exifImageWidth || 235;
|
|
|
const orientation = Number(asset.exifInfo?.orientation);
|
|
|
if (orientation) {
|
|
|
- if (orientation == 6 || orientation == -90) {
|
|
|
+ // 6 - Rotate 90 CW, 8 - Rotate 270 CW
|
|
|
+ if (orientation == 6 || orientation == 8) {
|
|
|
[width, height] = [height, width];
|
|
|
}
|
|
|
}
|