We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f65d7d commit 14b599eCopy full SHA for 14b599e
1 file changed
js/load-image-orientation.js
@@ -126,12 +126,9 @@ Exif orientation values to correctly display the letter F:
126
options,
127
function (img, data) {
128
if (data) {
129
- var exifOrientation = data.exif && data.exif.get('Orientation')
130
- if (
131
- loadImage.orientation &&
132
- exifOrientation > 4 &&
133
- exifOrientation < 9
134
- ) {
+ var autoOrientation =
+ loadImage.orientation && data.exif && data.exif.get('Orientation')
+ if (autoOrientation > 4 && autoOrientation < 9) {
135
// Automatic image orientation switched image dimensions
136
var originalWidth = data.originalWidth
137
var originalHeight = data.originalHeight
0 commit comments