aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-09-07 01:42:22 -0400
committerbobzel <zzzman@gmail.com>2020-09-07 01:42:22 -0400
commit9a1fec81467e6d4b04c6e28d66b724aae92db826 (patch)
treedc5703a7746d2f5fe509fb78e696697782f55282 /src
parenta4c5fc599bf3df8cb6b6adacd663299d9929b982 (diff)
fixed image orientation for certain exif settings >= 5
Diffstat (limited to 'src')
-rw-r--r--src/client/views/nodes/ImageBox.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/ImageBox.tsx b/src/client/views/nodes/ImageBox.tsx
index 688bac725..5832a51a7 100644
--- a/src/client/views/nodes/ImageBox.tsx
+++ b/src/client/views/nodes/ImageBox.tsx
@@ -262,7 +262,7 @@ export class ImageBox extends ViewBoxAnnotatableComponent<FieldViewProps, ImageD
if (!this.layoutDoc.isTemplateDoc || this.dataDoc !== this.layoutDoc) {
const rotation = NumCast(this.dataDoc[this.fieldKey + "-rotation"]) % 180;
const orientation = NumCast(this.dataDoc[this.fieldKey + "-nativeOrientation"]);
- if (orientation === 6 || rotation === 90 || rotation === 270) {
+ if (orientation >= 5 || rotation === 90 || rotation === 270) {
this.layoutDoc._nativeWidth = NumCast(this.dataDoc[this.fieldKey + "-nativeHeight"]);
this.layoutDoc._nativeHeight = NumCast(this.dataDoc[this.fieldKey + "-nativeWidth"]);
} else {