summaryrefslogtreecommitdiff
path: root/client/common/upload.helpers.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/common/upload.helpers.js')
-rw-r--r--client/common/upload.helpers.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/common/upload.helpers.js b/client/common/upload.helpers.js
index 5a041fd4..eb42a993 100644
--- a/client/common/upload.helpers.js
+++ b/client/common/upload.helpers.js
@@ -15,15 +15,15 @@ function base64ToUint8Array(string, start, finish) {
}
function getOrientation(uri) {
- const exif = new ExifReader()
// Split off the base64 data
const base64String = uri.split(',')[1]
// Read off first 128KB, which is all we need to
// get the EXIF data
const arr = base64ToUint8Array(base64String, 0, 2 ** 17)
try {
- exif.load(arr.buffer)
- return exif.getTagValue('Orientation')
+ const tags = ExifReader.load(arr.buffer)
+ // console.log(tags)
+ return tags.Orientation
} catch (err) {
return 1
}