Skip to content
This repository was archived by the owner on May 25, 2023. It is now read-only.

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

+1-1
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)