We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f60a8ce commit 4a6fe05Copy full SHA for 4a6fe05
1 file changed
js/load-image-orientation.js
@@ -59,7 +59,7 @@
59
var styleWidth = canvas.style.width
60
var styleHeight = canvas.style.height
61
var orientation = options.orientation
62
- if (!orientation || orientation > 8) {
+ if (!(orientation > 1 && orientation < 9)) {
63
return
64
}
65
if (orientation > 4) {
@@ -118,7 +118,7 @@
118
if (orientation === true && data && data.exif) {
119
orientation = data.exif.get('Orientation')
120
121
- if (!orientation || orientation > 8 || orientation === 1) {
122
return options
123
124
newOptions = {}
0 commit comments