Skip to content

Commit 9db5183

Browse files
committed
Override Exif data if browser auto-rotates.
1 parent d8ed935 commit 9db5183

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/jquery.fileupload-image.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@
228228
// Prevent orienting the same image twice:
229229
delete options.orientation;
230230
} else {
231-
data.orientation = options.orientation;
231+
data.orientation = options.orientation || loadImage.orientation;
232232
}
233233
if (img) {
234234
resolve(loadImage.scale(img, options, data));

0 commit comments

Comments
 (0)